Skip to content

Commit 9aed9e1

Browse files
authored
feat: update sql solution to lc problem: No.2339 (#1822)
1 parent 7553442 commit 9aed9e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

solution/2300-2399/2339.All the Matches of the League/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Teams 表:
6767
SELECT t1.team_name AS home_team, t2.team_name AS away_team
6868
FROM
6969
Teams AS t1
70-
CROSS JOIN Teams AS t2
70+
JOIN Teams AS t2
7171
WHERE t1.team_name != t2.team_name;
7272
```
7373

solution/2300-2399/2339.All the Matches of the League/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Teams table:
6262
SELECT t1.team_name AS home_team, t2.team_name AS away_team
6363
FROM
6464
Teams AS t1
65-
CROSS JOIN Teams AS t2
65+
JOIN Teams AS t2
6666
WHERE t1.team_name != t2.team_name;
6767
```
6868

solution/2300-2399/2339.All the Matches of the League/Solution.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
SELECT t1.team_name AS home_team, t2.team_name AS away_team
33
FROM
44
Teams AS t1
5-
CROSS JOIN Teams AS t2
5+
JOIN Teams AS t2
66
WHERE t1.team_name != t2.team_name;

0 commit comments

Comments
 (0)