I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / sagesh
SELECT * FROM(
SELECT ROW_NUMBER() OVER (ORDER BY mark) AS Stu_Rank
FROM student) As T
WHERE Stu_Rank = 2
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What is the meaning of resultset type_scroll_insensitive?
What is the difference between getdate and sysdatetime?
Tell me what is log shipping?
what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration
What is the bookmark lookup and rid lookup?
How to create an index on a view?
What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas
What do you understand by triggers?
Is sql server is free?
What is a select query statement in ms sql server?
How can I check if a view exists in a sql server database?
How do I find my localdb version?
What happens if we shrink log file in sql server?
Define tool Manage Statistics in SQL Server 2000 query ?
What is coalesce in sql server?