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 scd (slowly changing dimension)? : sql server analysis services, ssas
Explain primary key, foreign key and unique key?
Explain what are the authentication modes in sql server?
What do you mean by acid?
What is best institute to Learn DotNET And SQL in chennai?
What are the different types of sub-queries?
What are the different types of Indexes available in SQL Server?
Define master database?
How can I know what locks are running on which resource?
Explain Reporting Life Cycle?
how many layers of tcp/ip protocol combined of? : Sql server database administration
What are subqueries in sql server?
How do I debug a stored procedure in sql server?
Explain Capacity planning to create a database? and how to monitor it?
How to delete duplicate rows in sql server?