Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can I learn sql in a week?

1122


How do you add a column to a table?

1106


What is the use of pl/sql table?

1106


Explain the structure of pl/sql in brief.

1142


What is the difference between mdf and ndf files?

1163


Is inner join faster than left join?

1252


what is csv? : Sql dba

1051


How to rename a column in the output of sql query?

1132


what is uncommittable transactions? : Transact sql

1038


What is flag in sql?

1099


How to execute a stored procedure?

1162


How do I find duplicates in sql?

983


What is not null in sql?

1109


When should I use nosql database?

1059


What is procedure explain with program?

1068