I have 2 columns, one called rating_average and one called rating_count.
I need to select the 3 rows with the highest rating with the rating count factored into the equation as well.
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.
You can do math in the order by clause, like:
In MySQL, you can add
limitat the end of a query to restrict the rowset to the first N rows.If you’d give an example, we could probably provide you with a more specific solution.