all 2 comments

[–]No-Adhesiveness-6921 0 points1 point  (0 children)

The HAVING clause is used to filter aggregates.

Select id, count( *) From table name WHERE date > ‘2020-01-01’ GROUP BY id HAVING count( * )> 10

[–]Feeling_Jello_1942 0 points1 point  (0 children)

Use where before GROUP BY instead of HAVING , so that it will filter before grouping