I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / rajat kumar
select top 1 marks from student where marks <(select max(marks) from student) order by marks desc
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is use of attribute hierarchy optimized state? : sql server analysis services, ssas
Can foreign key be duplicate?
Why truncate is ddl command?
What is the difference between update lock and exclusive lock?
How to test subquery results with the exists operator?
Is mysql better than sql server?
What is the command dbcc checkdb used for?
What method is used by the Command classes to execute SQL statements that return single values?
What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration
in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it
What do you understand by sql server agent?
What do you understand by the data quality services in sql server?
How to delete a login name in ms sql server?
Explain intellisense for query editing
What is ms sql server triggers?