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...

a query to select maxmun 3 salaries of employee table

Answer Posted / ron

if you need to select by department then analytic function
is more readable:
1. use row_number() partition by dept order by sal desc as rn,
2. in where clause choose rn <4;

you can use rank() instead; if 2 or more employees have same
salary.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are synonyms used for?

1035


Please explain oracle data types with examples?

1074


What is analyze command used for?

1073


What is Virtual Private Database in Oracle?

1091


Explain the use of full option in exp command.

1116


Why is oracle database so popular?

1002


How to list all user accounts in oracle?

1028


How to estimate disk space needed for an export job?

1051


Is oracle an open source?

1081


Can multiple cursors being opened at the same time?

1060


query optmization techniques and quwry analyser+projects+ppts

2421


How to get a list of all user accounts in the database?

1088


What suggestions do you have to reduce the network traffic?

962


What is oracle server autotrace in oracle?

1166


What happens to the current transaction if the session is killed?

989