I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / rajat kumar
select top 1 marks from student where marks <(select max(marks) from student) order by marks desc
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is sql profiler. What are the default templates with it? : sql server database administration
What does this statement do @@rowcount?
What is sql server database?
Explain the difference between clustered and non-clustered index?
what is the difference between Delete and Truncate command in SQL
How can we remove orphan records from a table?
What is replication with database mirroring? : sql server database administration
What does indexation mean?
what is the system function to get the current user's user id? : Sql server database administration
What does the not null constraint do?
What are the differences between local and global temporary tables?
How do you open a cluster administrator?
What is the boxing and unboxing concept in .net?
What happens if you insert a duplicate key for the primary key column in ms sql server?
How to grant a permission in ms sql server using "grant execute" statements?