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
Is pl sql different from sql?
What are the most important ddl statements in sql?
What are the types of records?
How many sql statements are used? Define them.
Define commit, rollback and savepoint?
Can you load data into multiple tables at once? : aql loader
What is record data type?
what is a foreign key ? : Sql dba
How do I make my sql query run faster?
what is a cursor? : Sql dba
How many types of privileges are available in sql?
explain about mysql and its features. : Sql dba
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
How do I start sql profiler?
Explain isolation levels. : Transact sql