Answer the question
In order to leave comments, you need to log in
How to write a query with a condition and GROUP BY in MySQL?
Greetings. I am writing this query:
SELECT reklama_source_id, SUM(price) as `sum_price` FROM `applications` WHERE `sum_price` > 20 GROUP BY `reklama_source_id`
#1054 - Неизвестный столбец 'sum_price' в 'where clause'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question