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

Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

996


What is sql profiler. What are the default templates with it? : sql server database administration

1028


Does sql server 2016 have ssms?

954


What are the types of database recovery models?

1112


What is raiseerror? What is raiseerror?

1128


What is the use of toad or sqldbx.?

1146


What is a recursive stored procedure in sql server?

1169


Can a table have 2 foreign keys?

902


What is the difference between truncate and delete commands?

1061


my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions

1938


Define msdb database?

1011


What is the difference between getdate and sysdatetime?

999


What is the stored procedure?

1004


Why we need to use secondry database file? though, we can do same work using primary database file also.

6873


What happens on checkpoint?

1022