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 employee name from employee table which is the
fiveth highest salary of the table

Answer Posted / mani

select first_name,sal from
(
select first_name,sal from
(
select distinct
sal from employees
order by sal desc
)
where rownum < 5
order by sal
)
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

Is vs as in pl sql?

929


What are the different operators available in sql?

957


how to include comments in sql statements? : Sql dba

907


What is record variable?

919


Enlist some predefined exceptions?

991


What is dml statement?

899


How do I start sql profiler?

937


Difference between table function and pipelined function?

966


What are the built in functions of sql?

975


Can there be more than one function with a similar name in a pl/sql block?

921


What is natural join in sql?

916


What happens when a trigger is associated to a view?

838


Why do we need cursor in pl sql?

1076


Are subqueries faster than joins?

946


What is pl/sql table? Why is it used?

976