I have been asked to find the minimum age in each rating from a table, which looks like this:
table name: 'SAILORS'
fields: 'SID', 'SNAME', 'Rating', 'Age**'
This can be done using PHP, but I have to do this using a MYSQL Query.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A group by over
Ratingcolumn and min function call will do it.