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 many sectors are in a partition?
How do I find duplicates in sql?
What is the difference between a subquery and a join?
How would you convert date into julian date format?
What is the life of an sql statement?
What are its different types of dbms?
What schema means?
What is the largest value that can be stored in a byte data field?
How to run sql functions in pl/sql?
what is the difference between $message and $$message? : Sql dba
Is json a nosql?
Is inner join same as self join?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
How to write pl sql program in mysql command prompt?
What is a sql driver?