Lakshmi Posted November 17, 2005 Share Posted November 17, 2005 Hi,i'm getting one problem.in my employee table have the sal field.how to find 3 max sal from 10 employees..plz help any oneThanks and Regards Link to comment Share on other sites More sharing options...
vijay Posted November 17, 2005 Share Posted November 17, 2005 Hi, one Thing can be done Without max Functionsselect sal from employee order by descAnd Get first 3 recordThis is suppose u wantVijay Link to comment Share on other sites More sharing options...
Lakshmi Posted November 17, 2005 Author Share Posted November 17, 2005 Hi, one Thing can be done Without max Functionsselect sal from employee order by descAnd Get first 3 recordThis is suppose u wantVijay<{POST_SNAPBACK}> Got it .Thank u very Much for your Quick response Link to comment Share on other sites More sharing options...
Kcarson Posted November 17, 2005 Share Posted November 17, 2005 And if you just want to return those top 3 rows, you can check out the various possible solutions from this other thread:http://w3schools.invisionzone.com/index.php?showtopic=652 Link to comment Share on other sites More sharing options...
Guest satishjb Posted November 27, 2005 Share Posted November 27, 2005 Hi,i'm getting one problem.in my employee table have the sal field.how to find 3 max sal from 10 employees..plz help any oneThanks and Regards<{POST_SNAPBACK}> select * from employe_table order by sal desc limit 2,1;Hope this will help U Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now