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

Can a key be both primary and foreign?

946


What is pl sql architecture?

924


What are the sql versions?

896


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1384


How many unique keys can a table have?

959


What is dialect in sql?

890


What is sql profiler in oracle?

1015


What is data abstraction in sql?

969


What is difference between nchar and nvarchar?

958


What is difference between sql and excel?

1010


Can ddl statements be used in pl/sql?

1070


what is row? : Sql dba

1168


What does closing a cursor do?

1247


what are the authentication modes in sql server? : Sql dba

1000


what is a constraint? Tell me about its various levels. : Sql dba

932