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
Explain in brief about Microsoft SQL server?
Any one plz send me SQL Server Developer/DBA resume for 4 years experience
How many cores do I need for sql server 2016?
What are the different types of locks in the database?
Explain logical operators in sql server?
How will you optimize a stored procedure optimization?
Explain differentiate between a having clause and a where clause?
how would you store your query in an SSRS report or a Database server?
How do you migrate data from mssql server to azure?
Explain nested stored procedure. Syntax and an example for create nested stored procedure?
What are data files?
Do you know hot add cpu in sql server 2008?
Does a sql server 2005 select statement require a from?
What is Replication?
How to change a login name in ms sql server?