adspace
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
Is primary key clustered index?
Can we rollback truncate?
what are aggregate and scalar functions? : Sql dba
Can delete statement be rollbacked?
how to escape special characters in sql statements? : Sql dba
Do we need to rebuild index after truncate?
Can we use distinct and group by together?
what are the advantages of sql ? : Sql dba
how to start mysql server? : Sql dba
what is dbms? : Sql dba
What is the current version of sql?
what is schema? : Sql dba
what is collation? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
what are all the common sql function? : Sql dba