题解 | #牛客的课程订单分析(一)#

牛客的课程订单分析(一)

http://www.nowcoder.com/practice/d3aa5df807f046bea5003dbc04965d67

select * from order_info where (date>"2025-10-15" and status="completed") and (product_name ="C++" or product_name ="Java" or product_name="Python")

一开始想的是product_name !=“JS“,但是忽略了表中课程名中或许还有其他值,多个限制条件时,用到() and 的优先级总是比or高

全部评论

相关推荐

有了offer来还愿:学校不行,专业不行,学历不行,怎么找?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务