学习时间:
2023年2月24日
题目描述:


题解分享:
# 作 者 : 繁 华 倾 夏
# 力扣(LeetCode):1050. 合作过至少三次的演员和导演
# MySQL 数据库
select
actor_id, director_id
from
actordirector
group by actor_id, director_id
having count(*) >= 3
该文章分享了如何使用MySQL查询在actordirector表中找出合作次数大于等于3次的演员和导演组合,通过groupby和having子句实现统计过滤。


# 作 者 : 繁 华 倾 夏
# 力扣(LeetCode):1050. 合作过至少三次的演员和导演
# MySQL 数据库
select
actor_id, director_id
from
actordirector
group by actor_id, director_id
having count(*) >= 3
103

被折叠的 条评论
为什么被折叠?