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

how to select second mauximum value in a given table under salary column

Answer Posted / utkal

Select distinct(E1.Salary) from EMPLOYEE E1 where 2 =
(Select Count(distinct(E2.Salary)) from Employe E2 where
E1.Salary <= E2.Salary).

Here n=2,

Similarily we can find the 5th highest salary etc...

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you find current date and time in oracle?

1004


How to define a data source name (dsn) in odbc manager?

990


What is dynamic proxy?

977


what are actual and formal parameters?

1069


1) Does oracle have any table which contain all the exceptions and it's code internally?

1718


What is the exact use of Collections?

2110


What is data file?

1065


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

2221


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

2457


Explain the difference between a procedure and a function? What do you understand by those terms?

1038


How to insert a new row into a table in oracle?

1124


What is the difference between view and materialized view in Oracle?

1109


What is oracle rowcount?

1051


What is the relation of a user account and a schema in oracle?

1033


can anyody please send me the dump for Oracle 10g certifications for DBA path?

2104