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

How is a PL/SQL code compiled?

1240


What is the use of desc in sql?

981


How do you pronounce sql?

1020


Does a join table need a primary key?

959


What is the basic form of sql query?

948


What happens when a trigger is associated to a view?

916


Does a primary key have to be a number?

969


what are aggregate and scalar functions? : Sql dba

1060


can a stored procedure call itself or recursive stored procedure? : Sql dba

1037


How to run sql statements through the web interface?

1049


Explain cursor types?

1033


what are set operators in sql? : Sql dba

1058


What is coalesce in sql?

1067


What are sql functions? Describe the different types of sql functions?

1147


What is sql clause?

1056