题解 | #返回购买价格为 10 美元或以上产品的顾客列表#
返回购买价格为 10 美元或以上产品的顾客列表
https://www.nowcoder.com/practice/827eb2a210c64ccdb8ec28fe4c50c246
使用exists 关键字子查询技术
select cust_id
from Orders O1
where exists (
select 1 from OrderItems O2
where O2.order_num = O1.order_num
and O2.item_price >= 10
)
order by cust_id ;

查看16道真题和解析