How to get employee name from employee table which is the
fiveth highest salary of the table
Answer Posted / kishore
select salery from (
(select salery ,rownum as num from
(select salery from employees order by salery desc)
where rownum <= 5 ))
where num = 5;
Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
What is pl/sql table? Why is it used?
What is rank dense_rank and partition in sql?
Can we use ddl statements in stored procedure?
What are tables and fields in the database?
what is a table in a database ? : Sql dba
how to select first 5 records from a table? : Sql dba
explain the difference between bool, tinyint and bit. : Sql dba
What is string join?
What is example of database?
Can a table contain multiple foreign key’s?
Does truncate release storage space?
How can one get sql*loader to commit only at the end of the load file? : aql loader
How do you delete duplicates in sql query using rowid?
What is update query?
what is the difference between rownum pseudo column and row_number() function? : Sql dba