题解 | #使用子查询的方式找出属于Action分类的所有电影对应的title,description#

使用子查询的方式找出属于Action分类的所有电影对应的title,description

http://www.nowcoder.com/practice/2f2e556d335d469f96b91b212c4c203e

考察多表关联和子查询,先将film表和film_category 链接 然后 把category表中 分类 action的 category 作为条件 进行子查询

select a.title,a.description from film a left join film_category b on a.film_id=b.film_id
where b.category_id in 
(select category_id from category where name='Action')
全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务