I have student marks in a student table. I need second
highest mark .Then what will the query for this?

Answer Posted / rias

Select MIN(MARK) from student where mark in (select Top 2
mark from student order by mark desc)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does using a separate hard drive for several database objects improves performance right away?

613


What is database replication?

676


How to update multiple rows with one update statement in ms sql server?

739


How do I create a stored procedure in dbml?

605


What is the Disadvantage of indexed sequential file.

705






Write an SQL query to obtain the 2nd highest salary.

689


Is null in sql server?

651


What are extended events in sql server?

597


What are the benefits of filtered indexes?

605


What are the disadvantages of using the stored procedures?

632


What is the difference between a check constraint and a rule?

694


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

650


What is tempdb database? : SQL Server Architecture

681


Why are you getting errors when creating a new odbc dsn?

697


What happens if date-only values are provided as date and time literals?

645