Skip to content

Commit a4f6e01

Browse files
authored
Merge pull request Snailclimb#2110 from huyangdev/main
[docs fix] Issue Snailclimb#2109
2 parents 6559cec + c188cb6 commit a4f6e01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/database/sql/sql-questions-01.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,9 @@ WHERE condition;
953953
```sql
954954
SELECT cust_id
955955
FROM Orders
956-
WHERE order_num IN (SELECT order_num
956+
WHERE order_num IN (SELECT DISTINCT order_num
957957
FROM OrderItems
958-
GROUP BY order_num
959-
HAVING Sum(item_price) >= 10)
958+
where item_price >= 10)
960959
```
961960

962961
### 确定哪些订单购买了 prod_id 为 BR01 的产品(一)

0 commit comments

Comments
 (0)