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 find the n'th highest salary from emp ?

Answer Posted / jaya u

SELECT A.EMPNAME ,A.SAL FROM EMP A
WHERE A.SAL = (SELECT DISTINCT (b.sal)
FROM EMP B WHERE ROWNUM = &N
ORDER BY B.SAL DESC );

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to grant create session privilege to a user in oracle?

948


what is Single Byte Overhead...?

2500


What is a private synonym?

1531


How many file formats are supported to export data?

1139


Why do you use stored procedures and state some of its disadvantages?

971


What is rich query?

929


Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?

1326


What is the use of aggregate functions in oracle?

981


What is where clause in oracle?

982


What are the general rules on data consistency?

960


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

2209


State any two functions of oracle?

984


How a tablespace is related to data files?

1062


What are the different types of synonyms?

1078


What is the difference between a user and a schema in oracle?

984