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 are the types of user defined functions in sql server?
Explain what is cte (common table expression)?
How display code or Text of Stored Procedure using Sql query in Sql Server ?
What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?
Any one plz send me SQL Server Developer/DBA resume for 4 years experience
List down some advantages of sql stored procedure?
What is de-normalization in sql database administration? Give examples?
How do you identify a foreign key?
How to convert numeric expression data types by assignment operations?
If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio
where the connection string store in the database
How much is a sql server license?
What is sql server profiler?
What is database replication? What are the different types of replication you can set up in sql server?
What is difference between inner join and full join?