题解 | #使用子查询的方式找出属于Action分类的所有电影对应的title,description#
使用子查询的方式找出属于Action分类的所有电影对应的title,description
http://www.nowcoder.com/practice/2f2e556d335d469f96b91b212c4c203e
思路:
select后先把要的列名写好
根据条件,从表film_category中找需要的列名film_id
left join 表category,限制列名=Action
select title, description from film
where film_id in
(select film_id from film_category
left join category
on film_category.category_id= category.category_id
where name="Action")
传音控股公司福利 360人发布