Skip to content

Commit 5780c46

Browse files
authored
Merge pull request Snailclimb#1956 from MisakaWater/main
Update sql-questions-01.md
2 parents f7f434d + 2124b54 commit 5780c46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,13 +1292,13 @@ order by c.cust_name;
12921292
select c.cust_name, o.order_num
12931293
from Customers c, Orders o
12941294
where c.cust_id = o.cust_id
1295-
order by c.cust_name;
1295+
order by c.cust_name,o.order_num;
12961296

12971297
# 显式内连接
12981298
select c.cust_name, o.order_num
12991299
from Customers c inner join Orders o
13001300
using(cust_id)
1301-
order by c.cust_name;
1301+
order by c.cust_name,o.order_num;
13021302
```
13031303

13041304
### 返回顾客名称和相关订单号以及每个订单的总价

0 commit comments

Comments
 (0)