This is My Query :
SELECT user,name,SUM(price) FROM $tableName WHERE faktor='1' GROUP BY user ORDER BY SUM(price) ASC
This Query Work , but i want to Show Who Have Sum(price) Bigger Than 100 $ .
i test it with WHERE SUM(Price) < '100' but not work , and Result is wrong.
Thanks 😉
You need to use
HAVING, notWHERE.WHEREapplies before doing the group-by.HAVINGapplies afterwords.