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 get second highest sal of emp table

Answer Posted / rakhi

SELECT *
FROM (
SELECT employee_id, last_name, salary,
RANK() OVER (ORDER BY salary DESC) EMPRANK
FROM employees)
WHERE emprank = 2;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a user account in oracle?

1069


How to define an explicit cursor in oracle?

989


How many file formats are supported to export data?

1139


What is oracle analytical function?

1032


What is Library Cache in Oracle?

1077


How do we display rows from the table without duplicates?

920


How to delete a user account in oracle?

916


Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?

2302


Explain an exception and its types?

1012


How to connect to a remote server?

1055


A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.

5417


Explain index?

1205


What is the use of aggregate functions in oracle?

981


How do we get field detail of a table?

1022


How to write a query with a left outer join in oracle?

1004