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 materialized view. What are different methods of refresh?

1330


What does the acronym acid stand for in database management?

983


Is primary key is clustered index?

938


What is the difference between nested table and varray?

942


What does dml mean?

928


What is meaning of <> in sql?

1020


What is prepared statement in sql?

993


What are the different types of dbmss?

963


What are the various levels of constraints?

1059


Is pl sql better than sql?

979


Why do we need a foreign key?

1021


What is view? Can we update view

1352


What is sqlerrm?

882


Where is sql database stored?

919


What information is needed to connect sql*plus an oracle server?

978