Skip to content

Commit c188cb6

Browse files
committed
[docs fix] Issue Snailclimb#2109
1 parent d737d39 commit c188cb6

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)