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

select * from emp
where
sal=(select MAX(sal) from emp
where
sal<(select MAX(sal)from emp))

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 importance of sqlcode and sqlerrm?

1357


Can a commit statement be executed as part of a trigger?

1058


What is basic structure of pl sql?

1075


How many sql databases can you have on one server?

1092


What is the maximum number of columns in sql table?

1176


What is integrity in sql?

1052


What is scope and visibility in PL/SQL?

1210


How can one get sql*loader to commit only at the end of the load file? : aql loader

1062


Is it possible to pass parameters to triggers?

1106


Define overloaded procedure?

1088


How do you concatenate in sql?

1032


How many times can we commit in a loop?

1026


Can there be 2 primary keys in a table?

1002


what is unique key constraint? : Sql dba

1045


What problem one might face while writing log information to a data-base table in pl/sql?

1171