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 out the 3rd highest salary?

Answer Posted / aarti verma

get the 3rd highest salary:

SELECT DISTINCT salary from employee e ORDER BY salary DESC
LIMIT 2,1;

get the records of employees having 3rd highest salary:

SELECT * FROM employees WHERE salary = (SELECT DISTINCT
salary from employee e ORDER BY salary DESC LIMIT 2,1);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are left and right joins the same?

1025


What does (+) mean in sql joins?

1034


What is primary and foreign key?

1033


Why use triggers in sql?

919


What is clause in sql?

1074


What is rowid in sql?

934


Explain the significance of the & and && operators in pl sql.

972


Can we call procedure in select statement?

997


Does truncate remove indexes?

991


How many types of normalization are there?

920


How to set up sql*plus output format in oracle?

987


What is varchar sql?

1086


What is the difference between function, procedure and package in pl/sql?

1178


How to display the current date in sql?

1025


What is the difference between python and sql?

955