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 3 salaries of the table using rownum

Answer Posted / seema

select sal from (select distinct sal from emp order by sal
desc ) where rownum < 3;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger price?

989


What is the difference between a subquery and a join?

1108


What is rank function in sql?

1029


How do I run a sql trace?

960


How many commands are in sql?

1073


How much does sql certification cost?

1094


What is the difference between python and sql?

1005


How can a pl sql block be executed?

948


How do you know if a relationship is 2nf?

946


Can a table contain multiple foreign key’s?

997


Is null operator in sql?

1041


What is file based approach?

942


Does truncate need commit?

948


Why do we need sharding?

991


Is join and inner join the same?

1003