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
Why are sql functions used?
How connect excel to sql server?
What does REVERT do in SQL Server 2005?
Mention a few common trace flags used with sql server?
What types of Joins are possible with Sql Server?
What is #table in sql server?
What is a trigger in sql server?
In what three ways is the return statement used in a stored procedure?
Ms sql server index?
Where does the copy job runs in the log shipping primary or secondary? : sql server database administration
What is sub-query in sql server? Explain its properties.
How to create a login account in ms sql server to access the database engine using "create login" statements?
What are the advantages of paper records?
How do I view a trc file?
What are the functions in sql server?