how to retrieve the top 2 salaried persons from a database?
Answer Posted / arun
select salary from(select salary from(select distinct salary from employees order by salary desc) where rownum<=2 order by salary) where rownum=1;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is sql character function?
How is pl sql different from sql?
How to revise and re-run the last sql command?
Is merge a dml statement?
What is the requirement of self-join?
What are the set operators in sql?
Can a table have no primary key?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
What is a sql select statement?
i have some prob lem to tell me about my self in interview first round ...
what is a control file ? : Sql dba
How to start the command-line sql*plus?
Can ddl statements be used in pl/sql?
explain access control lists. : Sql dba
Mention what problem one might face while writing log information to a data-base table in pl/sql?