Advertisement
Step8rother

Оператор INNER JOIN, задача 6

Jun 27th, 2023
1,818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.48 KB | Source Code | 0 0
  1. --Отберите названия уникальных категорий фильмов, в которых снималась Эмили Ди (англ. Emily Dee).
  2.  
  3. SELECT DISTINCT(c.name)
  4. FROM movie AS m
  5. INNER JOIN film_category AS fc ON m.film_id = fc.film_id
  6. INNER JOIN category AS c ON fc.category_id = c.category_id
  7. INNER JOIN film_actor AS f ON fc.film_id = f.film_id
  8. INNER JOIN actor AS a ON f.actor_id = a.actor_id
  9. WHERE a.first_name = 'Emily'
  10.   AND a.last_name = 'Dee';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement