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


Please Help Members By Posting Answers For Below Questions

What is pragma in sql?

816


What is data profiling in sql?

738


What is data modelling in sql?

709


What is the difference among union, minus and intersect?

731


What does partition by mean in sql?

688






How do I run a sql query?

736


Does mysql support pl sql?

811


Is sql dba a good career? : SQL DBA

712


What is dialect in sql?

700


What is keys and its types?

747


The select into statement is most often used to create backup copies of tables or for archiving records?

769


how many groups of data types? : Sql dba

725


what is column? : Sql dba

744


Which is better trigger or stored procedure?

687


Why is pl sql needed?

676