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

Answer Posted / rajkumar

select top 1 colmn from table_name where colmn in
(select top 2 colmn from table_name where colmn is not
null order by colmn desc)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anonymous block in sql?

640


Explain the difference between rename and alias?

543


Which kind of parameters cannot have a default value in pl sql?

595


What is numeric function sql?

544


What is the starting oracle error number? What is meant by forward declaration in functions?

542






Can 2 queries be executed simultaneously in a distributed database system?

646


How to Execute a Package in PL/SQL.?

587


How can I delete duplicate rows?

564


What is the maximum rows in csv?

485


What are pl sql procedures?

518


When should I use nosql database?

553


What is nosql vs sql?

567


What types of commands can be executed in sql*plus?

552


what is a trigger in mysql? : Sql dba

603


Can two tables have same primary key?

531