select Nth highest salary by using rownum
Answer Posted / welcomeashwin
SELECT * FROM HR.EMPLOYEES EMP1
WHERE &N=(
SELECT COUNT(DISTINCT(SALARY))
FROM HR.EMPLOYEES EMP2
WHERE EMP1.SALARY<=EMP2.SALARY
);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you delete a table from database?
Can you have more than one cursor open at any one time in a program ?
What are the database objects?
What is the relationship?
Difference between data and information, and how are they related in a database?
Explain the functionality of dml compiler.
What are five types of database models?
What is cold backup, hot backup, warm backup recovery?
What is the purpose of a field in a database?
What are the basic functions of a database?
What are the features of dbms?
How can you get the alternate records from the table in the sql?
How to export data from database and import into another?
What is limit in dbms?
Explain the classification of Database Management System?