I recently stumbled upon this question.
SQL Group By comparison with Python Group By error
If I edit the question and remove the python part of it, it boils down to a single SELECT AVG(field1) FROM table GROUP BY field2
query.
The OP in his question has made use of HAVING
in his query which is more advanced than a simple SELECT query. (at least when I started with SQL, it was)
So I thought to downvote and flag it to close. In a matter of minutes, answer was provided which provided the exact query to run, accepted answer, and upvote for the question.
I am not hurt that my flag was declined. But in future, should I leave such questions as it is?
HAVING
then when that inevitably failed they asked that question. It looks like they've tried to solve the problem and then posted, even if it's for a basic problem; that seems fine to me. – George Jul 18 '18 at 10:51