I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / kumaravel
try using this...
select top 1 from student where marks in (select top 2 from
student order by marks desc)
| Is This Answer Correct ? | 16 Yes | 10 No |
Post New Answer View All Answers
What are the different types of locks in the database?
How do you implement session management in SQL Server mode?
what is the difference between count(*) and count(1) ?
Explain what is lock escalation?
Can we install sql server 2016 on windows 7?
List all the types of user-defined functions?
What is the web service used for reporting services?
what are the types of indexes? : Sql server database administration
Tell me what are the advantages of using stored procedures?
In which tcp/ip port does sql server run? Can it be changed?
How many instances per computer are there in sql server 2000?
Does sql server use t sql?
How to drop an existing table with "drop table" statements in ms sql server?
What is serializable?
What is table constraint?