mirror of https://github.com/me50/kukemuna.git
7 lines
231 B
MySQL
7 lines
231 B
MySQL
|
|
SELECT movies.title FROM stars
|
||
|
|
JOIN movies ON stars.movie_id = movies.id
|
||
|
|
JOIN people ON stars.person_id = people.id
|
||
|
|
WHERE people.name IN ('Bradley Cooper', 'Jennifer Lawrence')
|
||
|
|
GROUP BY movies.title
|
||
|
|
HAVING COUNT(movies.title) = 2;
|