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

select salary from empTable where salary = (select
max(salary )from empTable where salary < (select max(salary
) from empTable))

OR

select salary from empTable where salary = (select
max(salary )from empTable where salary NOT IN (select
max(salary ) from empTable))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you drop a trigger?

922


What are database links used for?

988


Does mysql_real_escape_string prevent sql injection?

906


Can a procedure in a package be overloaded?

981


what is a database transaction? : Sql dba

1104


What is the current version of sql?

970


Why are aggregate functions called so?

896


Can we use loop in sql?

921


what are the properties and different types of sub-queries? : Sql dba

966


What is the maximum number of rows in sql table?

955


Can we have two clustered index on a table?

964


What is rownum and rowid?

982


Explain what is rdbms?

990


how many triggers are allowed in mysql table? : Sql dba

994


how to analyze tables with 'mysqlcheck'? : Sql dba

957