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

select top 1 salary from t1 where salary in(select top 2
salary from t1 order by salary desc)order by salary asc

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of merge?

1120


Is sqlite thread safe?

993


What does bitemporal mean?

1010


What are the properties of a transaction?

1073


What is rownum in sql?

967


What is data type in database?

933


Advantages and disadvantages of stored procedure?

1060


How to order siblings in oracle hierarchy queries?

983


What is mutating error in pl sql?

965


Can we use ddl commands in pl sql?

1075


Enlist the advantages of sql.

939


how to select first 5 records from a table? : Sql dba

922


What is the use of desc in sql?

916


Which is the correct statement about truncate and delete?

1037


Why we use stored procedure instead of query?

953