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 I view tables in sql developer?
What is the sql case statement?
What is record in pl sql?
How would you convert date into julian date format?
What is the requirement of self-join?
How to run pl/sql statements in sql*plus?
what is query cache in mysql? : Sql dba
How to return multiple rows from the stored procedure?
What is primary key in db?
What is crud stand for?
What is embedded sql with example?
What does closing a cursor do?
Explain the difference in execution of triggers and stored procedures?
Why is the cursor important?
Is time a data type in sql?