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 / neeraj
If the column name is key
select key,count(*) from jojo
group by key
simple
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to create new table with "create table" statements?
What is field with example?
What is delete query?
What is self join in sql server joins?
what is the difference between a primary key and a unique key? : Sql server database administration
How much does sql server 2016 cost?
What is the user of Primary key?
Can you edit the .rdl code associated with a linked report?
What Are the Main Features of SQL Azure?
What is sql server programming?
Differentiate between SQL and ORACLE joins and write their syntax.
what are defaults? Is there a column to which a default can't be bound? : Sql server database administration
What is the bookmark lookup and rid lookup?
How to disable triggers using "disable trigger"?
What is a performance monitor?