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...

find highest salary

Answer Posted / ankur gupta

FOR Nth Highest Salary Where N= 1,2,3,4

SELECT * FROM EMP E1 WHERE N=(SELECT COUNT(DISTINCT SAL)
FROM EMP E2 WHERE E1.SAL <= E2.SAL)


I have tested This Query on MySQL 5.1.41. its working fine.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long does a php session last for?

975


Is php easier than javascript?

947


Explain me soundex() and metaphone()?

947


What is a lambda function in php?

1037


Tell me what kind of things have you done on the social side?

919


What are the main error types in php?

1010


Can a trait extend a class php?

926


Write a program to get second highest number in an array using php?

949


What is difference between web service and api?

974


Tell us how to set cookies in php?

883


What are properties in php?

924


Is php still used?

912


What is singleton design pattern in php?

930


Tell me what's the difference between include and require?

939


What is restful api?

895