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 do I escape data before storing it in the database?

1040


What is a php tag?

923


Define about declare construct?

1106


What is basename php?

1021


What is null value in php?

1103


What are php strings?

1034


Where are the persistent cookies stored on your computer?

1043


How can we determine whether a variable is set?

1009


Which php framework is fastest?

1052


How can you get web browser’s details using PHP?

1023


Is not null mysql?

1017


What is the functionality of the functions strstr() and stristr()?

1031


Explain php split() function.

1048


Explain how can we increase the execution time of a php script?

1045


What is the difference between array_merge() and array_merge_recursive() in php?

1171