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 / raghuvir

select * from employee where salary = (
select min(salary) from (
select distinct(salary) from employee
order by salary desc)
where rownum <=5)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use stored procedure instead of query?

968


which types of join is used in sql widely? : Sql dba

942


What is sql select statement?

991


What is the difference between row level and statement level trigger?

981


What is a string data type in sql?

990


Is it mandatory for the primary key to be given a value when a new record is inserted?

1164


Is json a nosql?

937


Write an sql query to select all records from the table?

988


What is procedure explain with example?

914


What is error ora-01000: maximum open cursors exceeded

1094


What is a rank in sql?

921


what is the difference between group by and order by in sql? : Sql dba

1082


Is there a way to automate sql execution from the command-line, batch job or shell script?

942


What is the difference between drop and truncate commands?

1019


What is partition by in sql?

1019