Write a query to find second highest salary of an employee.
Answer Posted / deepshikha
SELECT MAX (sal)
FROM emp a,
(SELECT MAX (sal) max_sal
FROM emp) abc
WHERE a.sal < abc.max_sal
ORDER BY sal DESC;
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How many types of cursors are available in pl/sql?
What is a field in a database?
What is localdb mssqllocaldb?
What is the need of a partition key?
What is data type in database?
what are the disadvantages of mysql? : Sql dba
What are functions in sql?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
What schema means?
What does := mean in pl sql?
Can a view be mutating? If yes, then how?
How do sql databases work?
How many developers work on postgresql?
How to test for null values?
What are aggregate functions in sql?