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 / jigar r gor

Select sal from emp where sal < (select max(sal)from emp)
and rownum < 2 order by sal desc

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 a join query?

908


What is the usage of the distinct keyword?

1169


what are date and time functions in mysql? : Sql dba

927


What is the difference between in and between in sql?

996


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

903


What is dcl in sql?

907


Who is the owner of mysql database?

1002


What is sql query optimization?

1023


Which is faster union or join?

903


what is a materialized view? : Sql dba

999


What is the difference between python and sql?

940


what is blob? : Sql dba

1056


Is natural join and inner join same?

854


Can procedure in package be overloaded?

1030


Why do you partition data?

967