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 get help information from the server? : Sql dba

949


What is rowtype?

1028


What is bulk collect in pl sql?

1102


What is rollback?

1119


Explain what is a view?

1067


What is the difference between delete and truncate commands?

1050


Can 2 queries be executed simultaneously in a distributed database system?

1155


What are the types of join and explain each?

1059


What does trigger mean in psychology?

971


Is sql workbench free?

1008


what is not null constraint? : Sql dba

1042


Does group by remove duplicates?

1048


what are the advantages and disadvantages of cascading style sheets? : Sql dba

1064


What does count (*) mean?

937


How to create a menu in sqlplus or pl/sql?

1131