题解 |SQL必知必会 T98
确定哪些订单购买了 prod_id 为 BR01 的产品(二)
https://www.nowcoder.com/practice/999aa31a9a504c60baa088d90d82e64d
select o.cust_id, o.order_date from Orders o inner join OrderItems oi on o.order_num = oi.order_num where oi.prod_id = 'BR01' order by o.order_date asc
笔记:where条件应该在连接表之后才写