2024-03-28 14:42:10 +02:00
|
|
|
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;
|