题解 | #牛客的课程订单分析(一)#
牛客的课程订单分析(一)
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高