How to find only %th Highest Sal
Answer Posted / abhishekjaiswal
SELECT A.FIRST_NAME,
A.SALARY
FROM EMPLOYEES A
WHERE 3 = ( SELECT COUNT(*) -- Replace 3 with any value of (N - 1)
FROM EMPLOYEES B
WHERE B.SALARY > A.SALARY)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are the different type of sql's statements ? : Sql dba
Can we join more than 2 tables in sql?
what is the stuff function and how does it differ from the replace function? : Sql dba
How do you run a query?
what is a materialized view? : Sql dba
What is difference between procedure and trigger?
Explain two easy sql optimizations.
How do I kill a query in postgresql?
Do foreign keys improve performance?
Explain the uses of control file.
What are the three forms of normalization?
What is the command used to fetch first 5 characters of the string?
what is sql profiler? : Sql dba
Is left join faster than join?
What is mutating table error?