题解 | #返回购买价格为 10 美元或以上产品的顾客列表#
返回购买价格为 10 美元或以上产品的顾客列表
https://www.nowcoder.com/practice/827eb2a210c64ccdb8ec28fe4c50c246
使用内连接,
筛选条件放到on里进行判断
select o.cust_id from Orders as o inner join OrderItems as ot on o.order_num = ot.order_num and ot.item_price >= 10