How to get employee name from employee table which is the
fiveth highest salary of the table
Answer Posted / ajeet
SELECT first_name, salary FROM employees E1
WHERE (5) = (SELECT COUNT(DISTINCT(E2.salary))
FROM employees E2
WHERE E1.salary < E2.salary)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is data manipulation language?
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints
Does execute immediate commit?
Why do we create views in sql?
Are views faster than queries?
how to concatenate two character strings? : Sql dba
how can we destroy the session, how can we unset the variable of a session? : Sql dba
what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure
What is implicit cursor in pl sql?
Can a view be mutating? If yes, then how?
What is the difference between an inner and outer join?
What is the maximum rows in csv?
What is over () in sql?
what are all the different types of indexes? : Sql dba
Explain how can you save or place your msg in a table?