I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / siva prakasam
SELECT TOP (1) stuMark
FROM Student
WHERE stuMark < (SELECT MAX(stuMark) FROM Student)
ORDER BY stuMark DESC
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
As per your opinion what are the five top responsibilities of a dba? : sql server database administration
how to define testing of network layers? : Sql server database administration
Can group functions be used in the order by clause in ms sql server?
What is sql service broker?
How can I know what locks are running on which resource?
What is the process of indexing?
Can we store videos inside the sql server table?
How to connect a database with sql express.?
What is database mirroring?
What is the use of stored procedure?
What is the difference between Clustered and Non-Clustered Index?
What are different type of Collation Sensitivity?
How will you find out if there are expensive SQL statements running or not?
Tell me what is difference between view and materialized view?
How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?