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
What is a print index?
What is blocking?
What is cursors? And what are the different types of cursor?
What is "scheduled jobs" or "scheduled tasks"?
Explain about temporary stored procedure?
How to list all login names on the ms sql server?
What are approximate numeric data types in ms sql server?
How to deploy the Report?
How to retrieve field values using mssql_result()?
How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?
Can I disable or restrict ssrs export formats (rendering formats)?
Explain can SSRS reports Cache results?
Can you roll back the ddl statement in a trigger?
Can we store videos inside the sql server table?
How to stop a loop early with break statements in ms sql server?