题解 | 30#使用子查询的方式找出属于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'))
思路:采用俩个子查询就可以得到,一个子查询的作用从一个表中取出想要的字段。
sql题 文章被收录于专栏
牛客网里面的sql题,把答案和思路写下来