How to get employee name from employee table which is the
fiveth highest salary of the table
Answer Posted / avi007
SELECT employee_name,min(salary) FROM ( select distinct
salary from employee order by salary desc)
where rowno<6 group by employee_name;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what is the stuff function and how does it differ from the replace function? : Sql dba
How to add a column ‘salary’ to a table employee_details?
What is java sql driver?
What is blind sql injection?
What are different types of triggers?
In a distributed database system, can we execute two queries simultaneously?
Why trigger is used in sql?
Are left and right joins the same?
What is the difference between partition and index?
Explain the purpose of %type and %rowtype data types with the example?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
What does the file extension accdb stand for?
What is the difference between partitioning and sharding?
Is progress software supports to ( pl/sql )?
how many values can the set function of mysql take? : Sql dba