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

select TOP salary from employee where salary in( select TOP 2 salary from employee order by salary desc) order by salary asc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an intersect?

1100


How can I get the number of records affected by a stored procedure?

1061


Can you skip header records while loading? : aql loader

1053


Is primary key always clustered index?

1021


What is basic structure of pl sql?

1066


What are properties of the transaction?

998


What is a .db file?

984


Does sqlite need a server?

1045


what are the limitations of identity column? : Transact sql

1106


What trigger means?

977


how do you know if your mysql server is alive? : Sql dba

1078


Is it mandatory for the primary key to be given a value when a new record is inserted?

1198


How do I order columns in sql?

1003


Can dml statements be used in pl/sql?

1075


How to call shell script from pl sql procedure?

1277