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 are “lost updates”?
what are user defined datatypes? : Sql server database administration
How do I uninstall sql server 2014?
While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?
Which is the main third-party tool used in sql server?
How to write a query with a full outer join in ms sql server?
What is query optimizer in sql server?
What is a join in sql?
Does partitioning help performance?
How to insert new line characters into strings?
Explain transaction server consistency?
What is the process of normalization?
List all the types of user-defined functions?
What is compound operators?
What are a scheduled jobs?