I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / sadaq moulani
select top 1 marks from student where marks in(select
distinct top 2 marks from student order by marks desc)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What type of locking occurs during the snapshot generation? : sql server replication
What are pessimistic lock and optimistic lock?
What do you understand by recursive stored procedure?
What are functions in the sql server?
Explain about Normalization?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
What is the use of commit?
Define normalisation?
How to select some specific columns from a table in a query in ms sql server?
What is a non equi join?
What is the difference between cube operator and rollup operator? : SQL Server Architecture
How to filter out duplications in the returning rows in ms sql server?
What is difference between count (*) and count 1?
How many types of keys are there?
Explain database normalization?