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
How to call a function from a stored procedure in SQL Server ?
What are the tool windows in sql server management studio? : sql server management studio
How to rename databases in ms sql server?
What is lookup override?
What is extent? Types of extents?
Can sql servers linked to other servers?
What is the difference between TRUNCATE and DROP?
How to generate create procedure script on an existing stored procedure?
What is indexing explain it with an example?
What is update locks?
Explain what are magic tables in sql server?
Mention the command used to rename the database.
What is cte (common table expression)?
In which files does sql server actually store data?
how to use DTS package in 2000,2005,2008 in sql server