题解 | #使用子查询的方式找出属于Action分类的所有电影对应的title,description#
使用子查询的方式找出属于Action分类的所有电影对应的title,description
http://www.nowcoder.com/practice/2f2e556d335d469f96b91b212c4c203e
这道题要求用子查询,所以最好的解题方式是用双子查询, 不能用连接, 代码如下
select 
title,
description
from    film
where film_id in
(select film_id 
 
 
from film_category
WHERE category_id in (select category_id from category
                   WHERE name ="Action")
 )
查看11道真题和解析