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

Answer Posted / pravin more

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

Is This Answer Correct ?    53 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you use it?

574


What is the difference between varchar and varchar(max) datatypes?

551


Can sql servers linked to other servers?

545


What is the full form of dql?

505


What does it mean if @@cursor_row returns a negative number?

567






What is trigger and different types of Triggers?

568


How to create median function?

118


How to download and install microsoft .net framework version 2.0?

542


Can you force a query to use a specific index?

522


What are the steps to insert a table?

537


What are subquery and its properties?

571


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

523


what are user defined datatypes? : Sql server database administration

514


How to use go command in "sqlcmd"?

640


Explain what is cte (common table expression)?

624