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

SELECT first_name, salary FROM employees E1
WHERE (5) = (SELECT COUNT(DISTINCT(E2.salary))
FROM employees E2
WHERE E1.salary < E2.salary)

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 sqlite used for?

1003


How do I count duplicates in sql?

1106


If a cursor is open, how can we find in a pl/sql block?

1167


Which is better varchar or nvarchar?

997


what are wild cards used in database for pattern matching ? : Sql dba

1144


What is record type in pl sql?

995


What are analytical functions in sql?

1029


What is the main difference between sql and pl/sql?

1096


How do I quit sql?

963


Explain the uses of control file.

1050


How to select random rows from a table?

1076


Where do we use pl sql?

995


How do you explain an index number?

1110


what are the differences among rownum, rank and dense_rank? : Sql dba

1040


what is a trigger? : Sql dba

1030