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
What is meaning of <> in sql?
What are pl/sql packages?
What is update query?
What are tables in sql?
what is 'mysqladmin' in mysql? : Sql dba
How to pipe multiline string to isql?
Where are my tempfiles, I don't see them in v$datafile or dba_data_file?
What are the types pl/sql code blocks?
What is sqlcontext?
What is sql partition function?
Is it mandatory for the primary key to be given a value when a new record is inserted?
What are crud methods?
What is trigger types of trigger?
Is sql low level language?
What is a subquery in sql?