SELECT (ch.category) AS category1,(product.category) AS category2 FROM (SELECT SUM(point), category FROM history GROUP BY category ASC) AS ch,product WHERE product.category IN (SELECT category FROM (SELECT SUM(point), category FROM history GROUP BY category ASC) AS ch)
I want to write this on the Controller file. Please find me a way out. Thank you.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire