# #1050 Actors and Directors Who Cooperated At Least Three Times

#### [https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times/](https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times/)

{% tabs %}
{% tab title="MS SQL Server" %}
```sql
SELECT actor_id, director_id
FROM ActorDirector
GROUP BY actor_id, director_id
HAVING COUNT(*) >= 3
```
{% endtab %}
{% endtabs %}
