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

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a secondary key the same as a foreign key?

1116


How do I add a database to sql?

1185


Enlist some predefined exceptions?

1113


What is scope of pl sql developer in future?

1070


Can a foreign key have a different name?

996


What do you mean by field in sql?

1126


Explain the difference between sql and mysql.

1113


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1494


What is AUTH_ID and AUTH_USER in pl/sql ?

2236


how to check server status with 'mysqladmin'? : Sql dba

1132


What is the use of triggers?

1083


What is the maximum rows in csv?

977


How can you load multi line records? : aql loader

1125


Can cursors be part of a trigger body?

1693


what are all the different types of indexes? : Sql dba

1104