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

Answer Posted / siva prakasam

SELECT TOP (1) stuMark
FROM Student
WHERE stuMark < (SELECT MAX(stuMark) FROM Student)
ORDER BY stuMark DESC

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many triggers are possible per table?

806


What does dml stand for?

682


Explain transaction server isolation?

740


How real and float literal values are rounded?

811


What is the xml datatype?

803






How to handle error or exception in sql?

697


What is a covering index?

717


Explain a join?

780


What is an identity column in insert statements?

743


What is data source object?

719


Can we store videos inside the sql server table?

709


What are the properties of the transaction?

737


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

780


How to verify the port number of the sql server?

710


What are the types of indexes?

765