I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / ahmed
SELECT TOP 1 student marks
FROM(
SELECT TOP 2 student marks
FROM students_table
ORDER BY student marks DESC) AS emp
ORDER BY student marks ASC;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to find tables without indexes?
What is postgresql server?
Write a query for primary key constraint with identity key word?
What is an etl file?
How do I schedule a sql server profiler trace?
What gets stored inside msdb database?
How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?
Difference between report and query parameter. Why do we need different type of parameter?
what are the three command line utilities and what are their primary functions?
How to use the inserted and deleted pseudo tables?
Can you explain the disadvantages/limitation of the cursor?
What is normalization? Explain different forms of normalization?
What are views used for?
What are differences in between sql server 2012 and sql server 2016?
What is tcl in sql server?