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 find the second highest salary from emp table?

Answer Posted / anandaraj

This below query is used to get the name and salary of
second highest salary person. Its work great.

select Name, Salary from table_3 where salary = (select max
(salary) from table_3 where salary < (select max(salary)
from table_3 )).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to dump a table to a file with 'mysqldump'? : Sql dba

1103


What do you mean by field in sql?

1130


What is sql trigger example?

1115


Can I call a procedure inside a function?

1076


Can a foreign key have a different name?

999


What is difference between inner join and self join?

1137


Could you please provide oca (oracle 10g) dumps for my certification ?

5244


How do I get sql certification?

1018


How many types of cursors are available in pl/sql?

1167


How do you update a value in sql?

1103


What is cold data?

1015


What are the disadvantages of file system?

1364


What is union?

1253


What is an inner join sql?

1099


What is the syntax and use of the coalesce function?

1217