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

SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP n salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary

where n is the nth highest salary

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 nvarchar max in sql?

1023


What is optimistic concurrency control? : Transact sql

990


What is the difference between the conventional and direct path loads? : aql loader

1409


What is foreign key and example?

942


What is before and after trigger?

966


Can we join tables without foreign key?

968


How to add, remove, modify users using sql?

1039


What is difference sql and mysql?

995


What are expressions?

1021


What is parallel hint?

1334


what is bdb (berkeleydb)? : Sql dba

1040


What is a unique key?

1063


What are %type and %rowtype for?

1061


how to add a new column to an existing table in mysql? : Sql dba

1082


Is like operator in sql case sensitive?

1033