how to retrieve the top 2 salaried persons from a database?

Answer Posted / abc

Select salary from (select salary from employees order by
salary desc) where rownum <=2;

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is record data type?

677


What is cte sql?

718


What is vector point function?

770


What is the difference between a database and a relational database?

766


Is natural join same as inner join?

682






What is query syntax?

715


What is the difference between function and procedure in pl/sql?

748


what is online transaction processing (oltp)? : Sql dba

713


What is the difference between left outer join and left join?

702


How to run sql commands in sql*plus?

788


Is not equal in sql?

753


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

724


what happens if you no create privilege in a database? : Sql dba

718


What are three advantages to using sql?

732


How to know the last executed procedure?

809