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

Answer Posted / sarika

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain primary key?

726


What is the meaning of lock escalation and why/how to stop this? : sql server database administration

779


Are connections to sql server encrypted?

742


what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration

705


What is a non-clustered index?

716






Does an index slow down updates on indexed columns?

717


What are the limitations/drawbacks or ssrs 2008 r2?

105


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

729


What is the difference between stored procedure and functions?

774


What are the main sources of data?

804


What are the grouping functions?

700


What is the command to change the recovery model?

762


How to skip remaining statements in a loop block using continue statements?

743


Why I am getting "the microsoft .net framework 2.0 in not installed" message?

706


What does asynchronous call backs means?

767