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
What will happen if a column containing char type data is changed to the nchar data type?
How do I port a number to sql server?
what information is maintained within the msdb database? : Sql server administration
Is sql server free?
What are system databases in ms sql server?
How to insert multiple rows with one insert statement in ms sql server?
what purpose does the model database serve? : Sql server database administration
what is database replication? : Sql server database administration
Explain database normalization?
Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?
What is trace flag in sql server?
Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?
What is cursors?
What are diverse clauses that form a part of sql?
What is transactional replication?