Answer the question
In order to leave comments, you need to log in
How to make a request, if possible?
You must select the 10 highest rated entries from a particular category:
SELECT * FROM `tbl` WHERE `category` = 1 ORDER BY `rating` DESC LIMIT 10;
Answer the question
In order to leave comments, you need to log in
You can use sorting first by category = 1 DESC then by rating DESC
SELECT * FROM tbl
ORDER BY
category = 1 DESC,
rating DESC
LIMIT 10;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question