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

Anybody can tell me, how do we find second largest emp
salary from emp table.. Thanks in advance ...

Answer Posted / selvaraj anna university coe

Oracle 10g Using : Find 2nd Highest Salary?

SELECT * FROM emp e WHERE 2=(SELECT COUNT(DISTINCT salary)
FROM emp x
WHERE x.salary >= e.salary);

Answer :

EMP_NO EMP_NAME SALARY
--------- ------------------------- ---------
107 SARABOOT 550000

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign a tablespace to a users in oracle?

1088


Explain a private synonyms?

1097


How to select an oracle system id (sid)?

1120


How do I use unicode codesets with the weblogic jdriver for oracle driver?

1124


How to get a create statement for an existing table?

1013


How to connect to oracle using service name instead of sid?

1067


How to define an explicit cursor in oracle?

1099


How to assign a table row to a record variable?

1091


Explain the use of online redo log files in oracle.

1077


What is oracle latest version?

1148


What is logical backup in oracle?

1082


How to enter a new row into a table interactively?

1048


What privilege is needed for a user to create tables in oracle?

990


State all possible different index configurations a table can possibly have?

1100


How to use like conditions in oracle?

1114