find out the third highest salary?

Answer Posted / vishal

Here is the correct query:

select ename,sal from emp e
where 3 = (select count(distinct(sal))+1 from emp
where e.sal < sal);

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to grant create session privilege to a user in oracle?

571


How to assign values to data fields in record variables?

584


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

2728


What is Virtual Private Database in Oracle?

622


Difference between hot backup vs. Cold backup?

606






definition of cluster and non-clustered index?

2477


If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?

1659


How to check the server version in oracle?

611


How to invoke the data pump import utility?

651


Explain what are the characteristics of data files?

628


What is a database table in oracle?

572


Explain integrity constraint?

644


What exactly do quotation marks around the table name do?

544


How do I know if oracle is installed on windows?

486


What is an oracle user role?

569