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

Which are the different character-manipulation functions in sql?

989


How to use sql*plus built-in timers?

1097


What is the purpose of a secondary key?

902


what are date and time data types in mysql? : Sql dba

919


Can we rollback delete command?

935


How can we store rows in PL/SQL using array?

1162


Write an sql query to select all records from the table?

970


What is a trigger word?

964


Why does sql need a server?

992


What is group by in sql?

1027


What is the difference between database trigger and stored procedure?

1007


What happens when a trigger is associated to a view?

844


What is pl/sql language case sensitive?

1061


what is a constraint? : Sql dba

1106


what is union, minus and interact commands? : Sql dba

1123