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

Answer Posted / rupa

Select max(Marks) from Marks where Marks <
(select max(Marks)from Marks)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I setup a sql server database?

763


What is a transact-sql statement?

709


How to find related tables in sql server?

684


Define right outer join in sql server joins?

729


What is the difference between deallocate cursor and close cursor?

913






What is the main purpose of having conversation group?

660


What are the steps you will take to improve the performance of a poor performing query?

759


Can you please explain the difference between function and stored procedure?

748


What is difference between delete & truncate commands?

728


Explain iaas, paas and saas?

86


How to stop a loop early with break statements in ms sql server?

761


When does the auto update index statistics feature in sql server turn itself on?q) what specific conditions database should meet, before you can bulk copy data into it using bcp?

756


What is the ‘fillfactor’?

728


Why use stored procedures in sql server?

710


How fixed length strings are truncated and padded?

720