#sql 查找演过所有科恩电影的演员

#sql Find Actors who have acted in all coen movies

答案应该是麦克多曼德 这是电影 table

这是行为table

您可以尝试以下 - DEMO 这里

SELECT a.actor
FROM movies m
    INNER JOIN actors a ON a.title = m.title
WHERE m.director = 'Coen'
group by a.actor
having count(*)=(select count(distinct title) from movies where director = 'Coen')