Skip to content
Advertisement

How to rank table rows group wise in SQL Server without using RANK() or rownums function?

I am trying to rank the below table by grouping the sid and ranking the groups through marks in SQL Server.

Refer to the following table and answer the questions:

Marks:

Using windowing/analytical functions give a query for achieving the following output:

Advertisement

Answer

try this query

output

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement