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 / dinesh rajput

select sal from(select sal from
(select distinct sal from emp order by sal desc)
where rownum<=2 order by sal asc)
where rownum=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 tables in sql?

1120


what is isam? : Sql dba

1067


What is null in pl/sql?

1121


Which join is default?

1017


How do you use a while loop in pl sql?

1056


describe mysql connection using mysql binary. : Sql dba

1124


What is a call statement? Explain with an example.

1071


Why is the cursor important?

1082


How can we implement rollback or commit statement in a trigger?

1085


What is group function in sql?

1067


Does sql*plus have a pl/sql engine?

1132


What is a loop in sql?

1037


what is self-join? : Sql dba

1244


What are hotfixes and patches?

987


Does sql support programming?

1116