Advertisement
Step8rother

Операторы LEFT OUTER JOIN и RIGHT OUTER JOIN, задача 5

Jun 27th, 2023 (edited)
2,408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.30 KB | Source Code | 0 0
  1. --Отобразите названия фильмов, в которых снимались актёры и актрисы, не указанные в базе.
  2.  
  3. SELECT m.title
  4. FROM movie AS m
  5. LEFT OUTER JOIN film_actor AS fa ON m.film_id = fa.film_id
  6. GROUP BY m.title
  7. HAVING COUNT(fa.actor_id) = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement