There is such a structure database:
It is necessary to display a specific group if it has more than 5 users, tried such a query, but it does not work:
SELECT GROUP.NAME FROM GROUP JOIN USER_GROUP ON GROUP.ID = USER_GROUP.GROUP_ID WHERE USER_GROUP.GROUP_ID = '3' HAVING COUNT(USER_GROUP.GROUP_ID = '3') > 5 How to fix?

having count(user_id) > 5- teran 5:53 pmGROUP BY GROUP.ID,WHERE USER_GROUP.GROUP_ID = '3'- remove,HAVING COUNT(USER_GROUP.GROUP_ID = '3') > 5replace withHAVING COUNT(*) > 5- ArchDemon