Write a query to find second highest salary of an employee.
Answer Posted / dilip
select rank,sal from(select rownum rank,distinct(sal) from
emp order by sal desc)
where rank=2;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does subquery mean in sql?
What is using in sql?
what is the difference between sql and t-sql? : Transact sql
What is an intersect?
What is sql in java?
How many rows can sqlite handle?
Is sql a backend?
What is pivot in sql?
What is the difference between numeric and autonumber?
what is a record in a database ? : Sql dba
Is there a 64 bit version of ssms?
What is the best sql course?
How do you define a foreign key?
how mysql optimizes distinct? : Sql dba
how can we destroy the session, how can we unset the variable of a session? : Sql dba