题解 | #使用子查询的方式找出属于Action分类的所有电影对应的title,description#
使用子查询的方式找出属于Action分类的所有电影对应的title,description
http://www.nowcoder.com/practice/2f2e556d335d469f96b91b212c4c203e
首先找出action 电影的id, 然后找出所有对应的title,description
select title, description
from film f
where film_id in
(select f.film_id
from film f
join film_category fc
on f.film_id =fc.film_id
join category c
on c.category_id=fc.category_id
where c.name='action')
from film f
where film_id in
(select f.film_id
from film f
join film_category fc
on f.film_id =fc.film_id
join category c
on c.category_id=fc.category_id
where c.name='action')