I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / lokeshwaran s
SELECT MAX(marks) AS second_highest_mark
FROM student
WHERE marks < (SELECT MAX(marks) FROM student);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to assign null values to variables or columns?
Should you normalize audio?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
How to delete all rows with truncate table statement in ms sql server?
Where do you find the default Index fill factor and how to change it?
Do you know what are pages and extents? : SQL Server Architecture
What is trigger and different types of Triggers?
How do you delete a data source?
When would you use the stored procedures or functions?
What are joins in sql and what are the different types of joins?
Is t sql the same as sql server?
Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
which backup strategy you are following at ur company
Explain try...catch with sql server?
What is table valued function and scalar valued functions?