I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / dharmendra k. dixit
SELECT TOP 1 Marks (SELECT TOP 2 Marks from Tablename Order
by Marks Desc)From Tablename order by Marks Asc
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How do I delete a sql server database?
What is a non equi join?
Can you explain the disadvantages/limitation of the cursor?
Is there any difference between the primary key and unique key?
What are the different types of Indexes available in SQL Server?
What are the types of subscriptions in SQL Server replication?
What is a cube? : sql server analysis services, ssas
Do you know what is difference between index seek vs. Index scan?
How to create database with physical files specified in ms sql server?
Tell me about joins in database system and explain each in detail.
What is resource db in sql server?
Why should one not prefix user stored procedures with ‘sp_’?
How to use clusters?
what is the information that can be stored inside a bit column? : Sql server database administration
List out what other servers you can use with ssrs?