select Nth highest salary by using rownum
Answer Posted / xxx
SELECT * FROM EMP WHERE N=(SELECT COUNT(DISTINCT SAL) FROM EMP
WHERE SAL>=e.SAL);
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Enlist various transaction phases.
How to select a random record from a table?
What is a form used for in a database?
What is a database management system and give examples?
What is difference between database and schema?
What is the use case where we can use stretch database?
How many types of database languages are?
Which database is used by google?
What are the various kinds of interactions catered by dbms?
What is create database?
How do you rename a database?
What is the maximum size of an access database?
Should database table names be capitalized?
Explain all codd's rules for relational database system?
What is a candidate key in a database?