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

select salary,empname from employee where
salary=(select max(salary) from employee where
salary<(select max(salary) from employee))

This query will produce all the result whose salary is
second highest.

1. A 20000
2. B 20000
3. C 20000
4. D 20000

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the requirement of self-join?

1125


How many types of tables are there?

948


What is the difference between pl and sql?

1092


What is on delete restrict?

1000


Which is faster union or join?

967


What is the least restrictive isolation level? : Transact sql

1063


How to read/write files from pl/sql?

1035


What can I use instead of union in sql?

964


how can we find the number of rows in a table using mysql? : Sql dba

1083


How do I upgrade sql?

998


What is sql and db2?

997


What normalization means?

971


Is time a data type in sql?

901


What are types of exception?

919


What is primary key in db?

1005