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 / raghunanda

SELECT * FROM(SELECT * FROM EMP ORDER BY SAL DESC) WHERE ROWNUM<=3;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to rename a table?

1076


What is sql not null constraint?

1096


Why do we need databases?

1093


what is a trigger in mysql? Define different types of trigger. : Sql dba

1121


what does the t-sql command ident_incr does? : Transact sql

1125


What is the use of count (*) in sql?

1119


What is the difference between nvl function, ifnull function, and isnull function?

1157


Does truncate release storage space?

1137


What is structural independence and why is it important?

1074


Explain sql data types?

1145


What is the difference between functions, procedures, and packages in pl/sql?

1096


What is gpt format?

993


What is the use of desc in sql?

1022


What is a database event trigger?

1213


How does one load ebcdic data? : aql loader

1258