题解 | #查找描述信息中包含robot的电影对应的分类名称以及电影数目#
查找描述信息中包含robot的电影对应的分类名称以及电影数目
http://www.nowcoder.com/practice/3a303a39cc40489b99a7e1867e6507c5
select c.name,count(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 f.description like '%robot%'
and c.category_id in
(select category_id from film_category
group by category_id having count(film_id) >= 5)
group by c.name;