Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if we have a column (Key) in a table.
and values of that column is
Key
1
1
1
2
2
3
3
4
4
5
5
5
and we want to show the data after query..like..

1(3)
2(3)
3(2)
4(2)
5(3)
how many times a single term comes..

Answer Posted / javamaster

select key,count(key) from tablename
group by key order by key

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define self join?

1078


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

958


What do you understand by check constraint in sql server?

1016


What is logshipping and its purpose?

1066


What are the characteristics of modern DBMS?

1140


Please explain what is “asynchronous” communication in sql server service broker?

980


How to convert a numeric expression from one data type to another?

1092


What is difference between delete & truncate commands?

1140


Explain contrast amongst grouped and non-bunched records?

1090


What is in place upgrade in sql server?

1093


What are locks in sql?

1014


Explain alternate key, candidate key and composite key in sql server?

951


where the connection string store in the database

2122


What is check constraint in sql server?

1047


Is resultset an interface?

1037