1. 程式人生 > 其它 >查詢描述資訊中包含robor的電影

查詢描述資訊中包含robor的電影

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