Question { Patni, 62942 }
I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer
select distinct mark from student_mark s
where (select count(distinct s1.mark) from student_mark s1
where s1.mark>=s.mark )=4;