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 / neeraj

If the column name is key
select key,count(*) from jojo
group by key

simple

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the components of dbms?

999


What is difference between cte and view?

979


What are the properties of sub-query?

1134


What are the different editions available in sql server 2000?

1117


What is the difference between osql and query analyzer?

1048


What is your recommendation for a query running very slow? : sql server database administration

1113


How to select true false based on column value in sql server?

1084


What are policy management terms?

1043


Explain what is meant by replication of database?

1106


What is the difference between grant and with grant while giving permissions to the user?

1027


What is the difference between ddl and dml?

1101


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

1017


Explain identity in sql server?

1057


What is a full text index?

971


Do you know what is blocking?

996