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

SELECT MIN(SAL)
FROM(SELECT distinct SAL FROM EMP
ORDER BY SAL DESC)
WHERE ROWNUM <= :N
where N is the Nth highest salary u want

Is This Answer Correct ?    18 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps for performance tuning.

1335


what is bdb (berkeleydb)? : Sql dba

1030


Are views faster than queries?

988


Why are sql stored procedures used?

1054


Can you have more than one trigger on a table?

998


What is lookup table in sql?

1045


Why do we use procedures?

955


Which certification is best for sql?

981


Explian rowid, rownum?

1010


What is union?

1163


Explain isolation levels. : Transact sql

1068


Is not equal in sql?

1010


What is benefit of creating memory optimized table?

970


How to run pl sql program in mysql?

1017


Which kind of parameters cannot have a default value in pl sql?

1147