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
How do you update sql?
How can check sql version from command line?
What is the purpose of design view?
What is a sql statement?
What is normalization sql?
Does pdo prevent sql injection?
what are the drivers in mysql? : Sql dba
What is a function in oracle pl sql?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
How do I filter in sql profiler?
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
Why do we use view in sql?
What are analytic functions in sql?
What is the difference between local and global temporary table?
Explain the difference in execution of triggers and stored procedures?