查詢描述資訊中包含robor的電影
阿新 • • 發佈:2021-01-15
select name,count(B.film_id)
from category
inner join
(select
category_id
from film_category
group by category_id
having count(film_category.category_id)>5
) A
on category.category_id =A.category_id
inner join film_category
on A.category_id = film_category.category_id
inner join (
select
*
from film
where film.description like '%robot%'
) B
on film_category.film_id = B.film_id
group by name,B.film_id