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

Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

1831


Explain the use of analyse option in exp command.

1191


How to calculate date and time differences in oracle?

1097


Difference between oracle's plus (+) notation and ansi join notation?

1160


How to invoke the original export import utilities?

1132


When do you get a .pll extension in oracle?

1191


How to drop an existing table in oracle?

1102


Explain self joins in oracle?

1061


Briefly explain what is literal? Give an example where it can be used?

1087


How to create lov dynamically at runtime & attach to text field?

1238


Difference between the “verify” and “feedback” command?

1426


How do we create privileges in oracle?

1099


Explain temporal data types in oracle

1133


How do I learn what codesets are available in oracle?

1077


How to update values in a table in oracle?

1077