Write a query to find second highest salary of an employee.
Answer Posted / murali
SELECT
MAX(Sal)
FROM
Emp
WHERE
Level=&Levelno
ORDER BY PRIOR Sal>Sal
GROUP BY Level
--Here we have to give &Levelno = 2
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can triggers be used for the table auditing?
What is nosql example?
what is the difference between clustered and non clustered index in sql? : Sql dba
what is a join? : Sql dba
What is %type in sql?
What is schema in sql example?
what are myisam tables? : Sql dba
Does user triggers have entry for trigger with compilation errors?
What are the parameter modes supported by pl/sql?
What is difference between ms sql and mysql?
Why is sql*loader direct path so fast?
What is spool?
what is a relationship and what are they? : Sql dba
Why do we use joins in sql?
What can I use instead of union in sql?