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 in a given table????

Answer Posted / shahnaz

To find the 2nd highest salary from emp table:

select max(sal) from emp where sal not in (select max(sal)
from emp )

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is PL/SQL ?

2051


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1688


What is the Tune Query

2291


How to change program global area (pga) in oracle?

1084


How to connect to oracle using service name instead of sid?

1021


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1897


How to create a temporary table in oracle?

1267


What is the difference between sharding and partitioning?

984


Explain the use of Merge statement in oracle 11g

1025


how to handle exceptions in post production

1418


How to set up autotrace for a user account?

1057


What is meant by joins?

1058


How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?

1913


what is the difference between data migration and production migration.

2343


Explain the use of compress option in exp command.

1019