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 field in a database ? : Sql dba
Could you please provide oca (oracle 10g) dumps for my certification ?
what does the t-sql command ident_current does? : Transact sql
What is the difference between the conventional and direct path loads? : aql loader
explain what is mysql? : Sql dba
What is error ora-01000: maximum open cursors exceeded
How do you change a value in sql?
What is the difference between an inner join and an outer join?
Why do we use procedures?
what is heap table? : Sql dba
What is an ndf file?
How many primary keys can a table have?
Explain the the delete statements in sql?
define sql update statement ? : Sql dba
How do sql databases work?