From c188cb6fc7be8665698781af0de7e6843be84f57 Mon Sep 17 00:00:00 2001 From: hy Date: Wed, 2 Aug 2023 16:52:20 +0800 Subject: [PATCH] [docs fix] Issue #2109 --- docs/database/sql/sql-questions-01.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/database/sql/sql-questions-01.md b/docs/database/sql/sql-questions-01.md index 77868bef..0d6499dd 100644 --- a/docs/database/sql/sql-questions-01.md +++ b/docs/database/sql/sql-questions-01.md @@ -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 的产品(一)