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
Inline the values in PL/SQL, what does it mean.?
what is 'mysqladmin' in mysql? : Sql dba
Does sql full backup truncate logs?
Which are the different character-manipulation functions in sql?
What does fetching a cursor do?
how can we destroy the cookie? : Sql dba
what are local and global variables and their differences? : Sql dba
Mention what pl/sql package consists of?
What is a subquery in sql?
What is the source code of a program?
how to check server status with 'mysqladmin'? : Sql dba
What is the difference among union, minus and intersect?
What is the need of a partition key?
Why is %isopen always false for an implicit cursor?
How many rows can sqlite handle?