The query should be like this
select * from student s1 where 0=(select count(sid) from student s2 where s1.sal<s2.sal);
am i correct ?