题解 | 先试错,后改错

使用join查询方式找出没有分类的电影id以及名称

https://www.nowcoder.com/practice/a158fa6e79274ac497832697b4b83658

select f.film_id,f.title
from film f left join film_category fc on f.film_id=fc.film_id
left join category c on fc.category_id=c.category_id
where c.category_id is null

全部评论

相关推荐

完美的潜伏者许愿简历通过:我上表jd,请求封我做后端大将军的事,北京有消息了:竟然不许!!! 他们一定是看我没有实习,这才故意驳回我的请求!
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务