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 global temp table?

944


how to do partition in sqlserver

2406


What is the use of =,==,=== operators?

956


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

903


How to disable stored procedure sql server?

1524


What is self contained multi valued query?

944


How to test subquery results with the exists operator?

1031


Explain what is row_number function?

971


What are the two modes of authentication in sql server?

974


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

878


What are the key configuration files for sql server reporting services ?

160


What is normalization and denormalization in sql server?

947


Explain how to maintain a fill factor in existing indexes?

926


What is bookmark link in ssrs?

232


what is a self join? : Sql server database administration

957