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 / manju
select key,count(key)as"count of items" from tablename
group by key order by key
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the methods used to protect against sql injection attack?
What is open database communication (odbc)?
What is sql stored procedure?
Why would you call update statistics?
Define left outer join?
Explain following error properties?
Why do we use non clustered index?
Can we add our custom code in ssis?
What is the difference between locking and multi-versioning?
 Explain what is sql override for a source taLle in a mapping?
What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks
What is a primary key?
What are the rendering extensions of ssrs?
What is tempdb in sql server?
What is sql sandbox in sql server?