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 / javamaster
select key,count(key) from tablename
group by key order by key
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a matrix in ssrs?
What are the properties of sub-query?
how to control the amount of free space in your index pages? : Sql server database administration
What are drilldown reports?
Tell me what is the order in which the sql query is executed?
what is a transaction and what are acid properties? : Sql server database administration
How to store and query spatial data?
What is the difference between TRUNCATE and DROP?
How do I setup a local sql server database?
Explain system functions or built-in functions? What are different types of system functions?
How do triggers work?
How many databases can we create in a single server?
What is db stored procedure?
Explain primary key and foreign key constraints?
What is the name of the Database which IBM mainframe uses?