Find out the 3rd highest salary?
Answer Posted / abhay
select distinct(sal) from emp a where 3=(select
count(distinct(sal) from emp b where a.sal<=b.sal);
somebody tell me he logic....!
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What are the ddl commands?
How can we solve sql error: ora-00904: invalid identifier?
What is a unique key?
How to add, remove, modify users using sql?
What does where 1/2 mean in sql?
What is the difference between partition and index?
What is primary key and foreign key?
List the various privileges that a user can grant to another user?
What is sql data?
How do I write a cron which will run a sql query and mail the results to agroup?
Is natural join and inner join same?
What is application trigger?
Does pl sql work in mysql?
What do you understand by pl/sql packages?
What is a primary key called that is made up of more than one field?