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
Differentiate between pl/sql and sql?
What does the file extension accdb stand for?
What mean sql?
How to connect a sql*plus session to an oracle server?
What is the difference between sql and isql*plus?
What does a pl/sql package consist of?
Which is faster joins or subqueries?
How to change the order of columns in Oracle SQL Plus ?
What is the purpose of using pl/sql?
What is difference between nchar and nvarchar?
Explain correlated query work?
What are the types of records?
what is sql? : Sql dba
What is sql procedures and functions?
what is timestamp in mysql? : Sql dba