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

Is pl sql useful?

997


How can a pl sql block be executed?

949


Explain correlated query work?

1059


what are the differences between char and varchar? : Sql dba

1077


How to run sql commands in sql*plus?

1188


What is the maximum number of columns in sql table?

1175


Why is pl sql needed?

956


What is difference between mysql and postgresql?

1161


how many groups of data types? : Sql dba

1031


How can check sql version from command line?

1090


What is auto increment feature in sql?

1129


How many types of functions are there in sql?

955


Can you do multiple joins in sql?

1056


How do I find duplicates in two columns?

1175


What is varchar sql?

1152