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 third highest salary?

Answer Posted / amitabh sharma

Here are 2 queries for finding 3rd highest salary:

select * from emp e
where 3 = (select count(sal) from emp
where e.sal < sal);


SELECT * FROM
(
SELECT Ename, SAL, dense_Rank() OVER (ORDER BY SAL DESC )
RANKNEW FROM EMP)
WHERE RANKNEW = 3

Regards,
Amitabh Sharma

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what happened to the global index when I truncate the data in one of the partition?

2066


What is the difference between count (*), count (expression), count (distinct expression)?

1046


How to define an anonymous procedure with variables?

1242


Explain the blob datatype?

1125


What is raw datatype?

1190


What are the oracle built-in data types?

1138


When do you get a .pll extension in oracle?

1193


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

1161


What is logical backup in oracle?

1085


Explain the characteristics of oracle dba?

1176


Explain the truncate in oracle?

1013


Explain the use of grant option in exp command.

1112


What are the system predefined user roles?

1100


Why do we use bulk collect in oracle?

1108


What is the quickest way to export a table to a flat file?

1012