Find out the 3rd highest salary?

Answer Posted / a.jyothsna

select a.sal
from emp a
where 3=(select distinct(count(b.sal))
from emp b
where a.sal<=b.sal)

Is This Answer Correct ?    100 Yes 45 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does user triggers have entry for trigger with compilation errors?

592


What does data normalization mean?

525


How does cross join work in sql?

533


What does truncate mean in sql?

534


What are sql injection vulnerabilities?

497






What is the difference between view and stored procedure?

490


Which normal form is best?

512


How do I count rows in sql?

557


What is exception? What are the types of exceptions?

554


What is a recursive stored procedure?

614


How do temporal tables work?

514


What is a trigger word?

514


What is equi join in sql?

607


Why do we use set serveroutput on?

514


Which is faster union or join?

490