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

Query to get max and second max in oracle in one query ?

Answer Posted / haddy

select ename,salary from (select distinct(salary) from
employee order by salary desc) where rownum<=2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is execute immediate in oracle?

1023


Explain oracle data types with examples?

1036


How to use an explicit cursor without open statements?

1057


What is a trigger and what are its types in oracle?

1080


what are steps for interface? where is exchange rate defined in which table?

2163


HI Friends Myself Manoj,i am from bengaluru.i have 1 yr of exp in PLSQL but not upto the mark..now attending interviews but m not able to clear even 1 round..i have attended 3 interviews till today.purpose of writing this query is,i want to know the intreview topics that interviewer going to ask frequently,mainly SCENARIO based questions.IF anybody have any PLSQL projects please give it to me,it will helps me alot.Thanks for your patience.

1427


Explain oracle instance.

1185


What is an oracle tablespace?

1049


What happens in oracle commit?

1033


What is pragma autonomous transaction in oracle?

1075


What is Virtual Private Database in Oracle?

1093


What is a private synonym?

1593


What is raw datatype in oracle?

1143


What is an oracle transaction?

1151


6. Display the client name and order date for all orders using the traditional method.

2314