1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-10 00:41:37 +08:00

Merge pull request #2110 from huyangdev/main

[docs fix] Issue #2109
This commit is contained in:
Guide 2023-08-02 21:11:46 +08:00 committed by GitHub
commit a4f6e01ba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -953,10 +953,9 @@ WHERE condition;
```sql
SELECT cust_id
FROM Orders
WHERE order_num IN (SELECT order_num
WHERE order_num IN (SELECT DISTINCT order_num
FROM OrderItems
GROUP BY order_num
HAVING Sum(item_price) >= 10)
where item_price >= 10)
```
### 确定哪些订单购买了 prod_id 为 BR01 的产品(一)