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 a call statement? Explain with an example.
Explain what is a field in a database and record in a database?
How does index help in query performance?
What is a design view?
What is lookup table in sql?
Which join is default?
Explain the uses of control file.
How do I install microsoft sql?
Which column of the user triggers data dictionary view displays the database event that will fire the trigger?
Difference between global and parameter variables?
What are system versioned tables?
Can we insert data into view?
Can you do multiple joins in sql?
How do I run a pl sql procedure in sql developer?
What is sql procedures and functions?