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

find the second highest salary of the emp table

Answer Posted / naresh

Here it is the simple solution.

Select Salary from (Select Salary, Rownum from Employee
order by Salary desc) where rownum=2

Should Work
Cheers!
Naresh

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a Nested Loop join?

2177


Give the various exception types.

1040


How to start an oracle instance?

1076


What is oracle used for?

1074


How to execute a stored procedure in oracle?

1148


How to rename an index?

1126


What is a Garbage Collection? and what is full recursive Garbage collection?

2961


What do you mean by redo log file mirroring?

1071


How to display row numbers with the records?

1144


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

2359


What happens if variable names collide with table/column names?

1269


How does Oracle guarantee data integrity of data changes?

2460


What is an index associated with a constraint?

1094


How do I connect to oracle database?

1203


What is the difference between alert log file and tarce file ?

2236