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
What is database dimension? : sql server analysis services, ssas
What is the difference between for xml raw and for xml auto?
What is difference in performance between insert top (n) into table and using top with insert?
What is the difference between an index and a unique index?
Explain the cursor lock types?
What are different types of schemas?
Explain full-text indexing?
Define magic tables in sql server?
What is sqlcmd?
Name few of the dcl commands in sql?
Do you know how to store and query spatial data?
What is partition in sql server?
What is sharding?
How to list all schemas in a database?
What is the sql profiler?