From b26e7a2e7abe8cf8ff49154f51a133adc6381e5b Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Mon, 16 Oct 2023 21:15:27 +0800 Subject: [PATCH] feat: update sql solution to lc problem: No.2339 --- solution/2300-2399/2339.All the Matches of the League/README.md | 2 +- .../2300-2399/2339.All the Matches of the League/README_EN.md | 2 +- .../2300-2399/2339.All the Matches of the League/Solution.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/solution/2300-2399/2339.All the Matches of the League/README.md b/solution/2300-2399/2339.All the Matches of the League/README.md index 760c536a964c3..166724e203425 100644 --- a/solution/2300-2399/2339.All the Matches of the League/README.md +++ b/solution/2300-2399/2339.All the Matches of the League/README.md @@ -67,7 +67,7 @@ Teams ่กจ: SELECT t1.team_name AS home_team, t2.team_name AS away_team FROM Teams AS t1 - CROSS JOIN Teams AS t2 + JOIN Teams AS t2 WHERE t1.team_name != t2.team_name; ``` diff --git a/solution/2300-2399/2339.All the Matches of the League/README_EN.md b/solution/2300-2399/2339.All the Matches of the League/README_EN.md index 9507130236aa1..430c355b76f90 100644 --- a/solution/2300-2399/2339.All the Matches of the League/README_EN.md +++ b/solution/2300-2399/2339.All the Matches of the League/README_EN.md @@ -62,7 +62,7 @@ Teams table: SELECT t1.team_name AS home_team, t2.team_name AS away_team FROM Teams AS t1 - CROSS JOIN Teams AS t2 + JOIN Teams AS t2 WHERE t1.team_name != t2.team_name; ``` diff --git a/solution/2300-2399/2339.All the Matches of the League/Solution.sql b/solution/2300-2399/2339.All the Matches of the League/Solution.sql index 86627a42718cd..057f9e6ee9e86 100644 --- a/solution/2300-2399/2339.All the Matches of the League/Solution.sql +++ b/solution/2300-2399/2339.All the Matches of the League/Solution.sql @@ -2,5 +2,5 @@ SELECT t1.team_name AS home_team, t2.team_name AS away_team FROM Teams AS t1 - CROSS JOIN Teams AS t2 + JOIN Teams AS t2 WHERE t1.team_name != t2.team_name;