1050. 合作过至少三次的演员和导演
难度系数: 简单
ActorDirector 表:
1 | +-------------+---------+ |
写一条SQL查询语句获取合作过至少三次的演员和导演的 id 对 (actor_id, director_id)
示例:
1 | ActorDirector 表: |
SQL结构
1 | Create table If Not Exists ActorDirector (actor_id int, director_id int, timestamp int); |
解法1:
1 | SELECT a.actor_id, director_id |
解法2:
1 | SELECT actor_id, director_id |
原题链接:https://leetcode.cn/problems/actors-and-directors-who-cooperated-at-least-three-times