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

Answer Posted / suman

select max(mark) from student where mark <
(select max(mark)from student)

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between clustered index and primary key?

676


Can primary key be null?

675


How to configure and test odbc dsn settings?

793


How to create stored procedures with parameters in ms sql server?

702


Explain external key management in sql server 2008

674






Explain how to send email from sql database?

725


How to execute a stored procedure in ms sql server?

728


Can sql server 2016 run on windows 7?

674


We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

1098


What is the significance of null value and why should we avoid permitting null values?

719


What is the maximum row of a size?

766


What are number line correlation administrators will use while working with a subquery?

831


The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio

697


What is update_statistics command?

761


How to reaname table name without using sp_Rename in sql server..?

722