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 triggers in ms sql server?
Where are sql server usernames and passwords stored in the sql server?
What is isnull() operator?
Explain the different types of backups available in sql server? : sql server database administration
How to list all tables in the database using odbc_tables()?
What is create statement?
What do you mean by sql server 2005 express management tools?
What are the dmvs? : sql server database administration
Describe in brief sql server monitoring ways.
Does table partitioning improve performance?
In which tcp/ip port does sql server run? Can it be changed?
How you can get a list of all the table constraints in a database? : Sql server administration
What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio
What is the sql case statement used for?
How to create a ddl trigger using "create trigger" statements?