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

1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.

Answer Posted / esakkiraja

select a.* from(select dense_rank() over(order by sal)as
new_rank from emp) a where new_rank=2

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you bind variables in oracle?

982


What privilege is needed for a user to query tables in another schema?

973


What is Virtual Private Database in Oracle?

1091


What is columnar storage what is the advantage?

1064


What are the uses of synonyms?

1138


What types of joins are used in writing subqueries?

986


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

1011


How to retrieve data from an explicit cursor?

1062


Point the difference between translate and replace?

1094


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

2117


How to use in conditions in oracle?

1058


What is object data modeling?

970


How to insert multiple rows with one insert statement in oracle?

1091


What is private procedure oracle?

1012


How to list all indexes in your schema?

1093