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

What are the differences between implicit and explicit cursors?

1049


How do I run a pl sql program?

1116


What are its different types of dbms?

990


What is null in pl/sql?

1047


What is rename command in sql?

1004


How many databases can sql express handle?

968


what is online transaction processing (oltp)? : Sql dba

980


what is the stuff function and how does it differ from the replace function? : Sql dba

1031


Why is sql*loader direct path so fast?

1091


how to create a new view in mysql? : Sql dba

924


What is sql performance tuning?

903


What do you think about pl/sql?

1002


How to use sql*plus built-in timers?

1171


What is %type in pl sql?

953


What are sql procedures?

1006