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 is rs.exe utility?

152


Why use sub query in sql server and list out types of sub queries?

949


While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?

109


What are the acid properties?

956


How to add an address record into adventureworkslt?

941


How many types of objects are there?

950


How to fine-tune reports?

253


What is the meaning of sql server?

946


What are the types of lock supported by ?

1003


What are the authentication modes in sql server? How can it be changed?

1068


Where actually sql azure database is hosted?

161


What is the guest user account in sql server? What login is it mapped to it? : sql server security

1018


Is port 1433 secure?

939


What is dimension table? : sql server analysis services, ssas

981


What is the purpose of sql profiler in sql server? : sql server database administration

1054