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 / hitesh kumar vyas s
Take a example as to find the same student who got first and
second marks in each of sub.
SELECT RollNo,COUNT(Rank) FROM Student GROUP BY RollNo,rank
ORDER BY rank
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is the difference between NOROW and LOCKROW?
How to change the name of a database user?
What is sql azure database?
What happens if ntwdblib.dll is missing on your machine?
Can coalesce return null?
What are the different types of lock modes in sql server 2000?
What are filegroups in sql server?
how to determine the service pack currently installed on sql server? : Sql server database administration
Can foreign key be deleted?
How to delete duplicate rows?
What is ms sql server reporting services?
Why use view instead of a table?
What are commonly used mssql functions in php?
How to integrate the ssrs reports in application?
What is self contained multi valued query?