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 is a function in oracle pl sql?
What is mdb stand for?
When is the update_statistics command used?
what is the difference between char_length and length? : Sql dba
How to make a copy values from one column to another in sql?
How many sectors are in a partition?
What is pl sql collection?
How do I run a sql query?
is mysql query is case sensitive? : Sql dba
How can I see all tables in sql?
Which sorts rows in sql?
what is sql server agent? : Sql dba
How can we optimize a sql query?
What is a dirty read sql?
Can a varchar be a primary key?