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
Explain Relational Algebra in RDBMS
What is data model in dbms?
Differentiate between nested loop, hash loop and merge join.
Define join and enlist its types.
How to recreate the index on a firebird table?
What is a database in a website?
What is the benefit of database?
What are the two types of indexes and explain them in detail? Or what's the difference between clustered and non-clustered indexes?
What are some disadvantages of a standard language such as sql?
How do you maintain a database?
How to know the Architecture of the Database
What are the different types of languages that are available in the dbms?
Can I concurrently access a firebird database with embedded and with regular server?
What is like operator for and what are wild cards?
Enlist various transaction phases.