Simple solution with GROUP BY
Approach\nGROUP BY + HAVING\n\n# Code\n\nSELECT actor_id, director_id FROM ActorDirector\nGROUP BY actor_id, director_id\nHAVING COUNT(*) >= 3\n
# Approach\nGROUP BY + HAVING\n\n# Code\n```\nSELECT actor_id, director_id FROM ActorDirector\nGROUP BY actor_id, director_id\nHAVING COUNT(*) >= 3\n```
['MySQL']