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

SELECT MAX(Salary) as 'Salary' from EmployeeDetails
where Salary NOT IN
(
SELECT TOP 1 (SALARY) from EmployeeDetails ORDER BY Salary Desc
)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a test table in your mysql server? : Sql dba

1057


what are all the different normalizations? : Sql dba

1122


what is a database lock ? : Sql dba

1227


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1250


What is sql analyzer?

1060


Is it possible to create startup or shutdown trigger for on-schema?

1093


How much does sqlite cost?

1094


Does asenumerable execute the query?

1097


describe transaction-safe table types in mysql : sql dba

1063


What is program debugging?

1345


Is it possible for a table to have more than one foreign key?

1084


What are the two types of cursors in pl sql?

1126


Difference between truncate, delete and drop commands?

1145


What makes a good primary key?

1096


How many postgresql users are there, worldwide?

1131