题解 | #对所有员工的薪水按照salary降序进行1-N的排名#
查找描述信息中包含robot的电影对应的分类名称以及电影数目,而且还需要该分类对应电影数量>=5部
http://www.nowcoder.com/practice/3a303a39cc40489b99a7e1867e6507c5
select c.name,count(f_c.film_id) as cf
from category c inner join film_category f_c on c.category_id=f_c.category_id inner join film f on f_c.film_id=f.film_id
where f.description like '%robot%'
group by c.category_id limit 1
这样奇怪的代码执行通过,不解。通过测试用例就算成功。
