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 / vikas kant
select key,count(key1) from [table_name]
group by key
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which autogrowth database setting is good?
What command is used to delete a table from the database in the sql server and how?
Where actually sql azure database is hosted?
What are pages and extents? : SQL Server Architecture
Explain partitioned view?
What are different types of statement?
Explain primary key, foreign key and unique key?
What is forward - only cursors / read only cursor?
What is an execution plan? When would you use it?
How do you send email on SQL Server?
Determine when to use stored procedure to complete sql server tasks?
How do I edit a procedure in sql server?
Explain few of the new features of sql server 2008 management studio
Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?
What are rest-style architecture's?