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
What is the federation in sql azure?
What is the difference between dataadapter and datareader?
What are the database objects? : SQL Server Architecture
What are the differences between local and global temporary tables?
What is a subquery in a select query statement in ms sql server?
Can sql servers link to other servers like oracle?
How to check if a table is being used in sql server?
Define right outer join?
What happens if null values are involved in arithmetic operations?
What is DCL?
How can delete duplicate records in cte in sql server?
How to get a list of all tables with "sys.tables" view in ms sql server?
What does indexation mean?
Explain acid?
How can windows applications connect to sql servers via odbc?