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
Explain database normalization?
Explain what are the restrictions while creating batches in sql server?
Explain the ways to controlling cursor behavior?
Does group by or order by come first?
What is an identity?
What does it mean to be in union?
What is it’s similarity with sql server?
What happens if the update subquery returns no rows in ms sql server?
 Explain what is sql override for a source taLle in a mapping?
What are the 7 disadvantages to a manual system?
How will you add a dimension to cube? : sql server analysis services, ssas
What are the types of database recovery models?
How to find the second highest salary of an employee?
Where to find ntwdblib.dll version 2000.80.194.0?
What programming language would you use to create embedded functions in ssrs?