how to findout the 100th maximum salary

Answer Posted / suresh

select sal from emp e
where 100=(select count( distinct sal) from emp where
e.sal<=sal)

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is schema? : Sql dba

739


How many tables can you join in sql?

706


What is meant by truncate in sql?

751


how to show all tables with 'mysql'? : Sql dba

816


What is group function in sql?

749






Explain the steps needed to create the scheduled job?

749


What is a crud api?

682


What is rownum in sql?

761


What is the maximum number of rows in sql table?

741


What is restrict in sql?

740


Is drop table faster than truncate?

739


what is bcp? When is it used?

767


what is the difference between nested subquery and correlated subquery?

742


What is clustered index sql?

698


What makes a good primary key?

729