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

What is member variable?

989


Explain about the $_GET variable of PHP?

1026


How can we get the error when there is a problem to upload a file?

993


Differences between get, post and request methods ?

981


What does the expression exception::__tostring means?

1014


What is the difference between php and java?

1000


What is a http session?

959


Why echo is faster than print in php?

990


Is php open source?

1001


What is composer install?

1064


Explain the difference between isset() and empty()?

964


Is polymorphism inherited?

1004


What is scope of variable in php?

1058


What is the use of header in php?

975


Which programming language does php resemble?

956