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

in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.

2143


What is %type in pl sql?

1014


What are basic techniques of indexing?

1446


How to test for null values?

1098


How does stored procedure reduce network traffic?

1066


What is nvl?

1117


how tsql statements can be written and submitted to the database engine? : Transact sql

1037


What is the maximum rows in csv?

979


What are records give examples?

1056


what is the functionality of the function htmlentities? : Sql dba

1012


What is difference between left and right outer join?

1038


What is bulk collect in pl sql?

1160


Write a sql query to get the third highest salary of an employee from employee_table?

1120


What does varchar include?

995


How do I access sql anywhere database?

1024