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

Find out the 3rd highest salary?

Answer Posted / av.anil

SELECT * FROM
(SELECT Ename,Sal,
DENSE_RANK()
OVER(ORDER BY Sal DESC) "D_RK"
FROM Emp)
WHERE D_RK = 3;

This query gives exact highest salary.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to display the current date in sql?

1058


What is the maximum database size for sql express?

1011


Enlist some predefined exceptions?

1041


What is rename in sql?

958


What are inner outer left and right joins in sql?

1002


How to handle bulk data?

1300


What do you know by pl/sql cursors?

1093


What are the types of join in sql?

1084


Which is faster union or join?

951


Why trigger is used in sql?

953


Does sql*plus have a pl/sql engine?

1055


How can you load microsoft excel data into oracle? : aql loader

1157


What is the need of merge statement?

1014


Why do we use view in sql?

935


Which one is faster ienumerable or iqueryable?

923