From 7e04b73a5fc3996c34e221806bdb3d80a74e1215 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:26 +0800 Subject: [PATCH] =?UTF-8?q?Update=20SQL=20=E7=BB=83=E4=B9=A0.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 示例数据与原题一致,题目链接更新,题意改为至少连续出现三次。 --- notes/SQL 练习.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/notes/SQL 练习.md b/notes/SQL 练习.md index 94cdd718..810421c2 100644 --- a/notes/SQL 练习.md +++ b/notes/SQL 练习.md @@ -73,16 +73,16 @@ IF CREATE TABLE World ( NAME VARCHAR ( 255 ), continent VARCHAR ( 255 ), area INT, population INT, gdp INT ); INSERT INTO World ( NAME, continent, area, population, gdp ) VALUES - ( 'Afghanistan', 'Asia', '652230', '25500100', '203430000' ), - ( 'Albania', 'Europe', '28748', '2831741', '129600000' ), - ( 'Algeria', 'Africa', '2381741', '37100000', '1886810000' ), - ( 'Andorra', 'Europe', '468', '78115', '37120000' ), - ( 'Angola', 'Africa', '1246700', '20609294', '1009900000' ); + ( 'Afghanistan', 'Asia', '652230', '25500100', '20343000' ), + ( 'Albania', 'Europe', '28748', '2831741', '12960000' ), + ( 'Algeria', 'Africa', '2381741', '37100000', '188681000' ), + ( 'Andorra', 'Europe', '468', '78115', '3712000' ), + ( 'Angola', 'Africa', '1246700', '20609294', '100990000' ); ``` ## 627. Swap Salary -https://leetcode.com/problems/swap-salary/description/ +https://leetcode.com/problems/swap-sex-of-employees/description/ ### Description @@ -208,7 +208,7 @@ VALUES ## 596. Classes More Than 5 Students -https://leetcode.com/problems/classes-more-than-5-students/description/ +https://leetcode.com/problems/classes-with-at-least-5-students/description/ ### Description @@ -340,13 +340,13 @@ https://leetcode.com/problems/delete-duplicate-emails/description/ 邮件地址表: ```text -+----+---------+ -| Id | Email | -+----+---------+ ++----+------------------+ +| Id | Email | ++----+------------------+ | 1 | john@example.com | -| 2 | bob@example.com | +| 2 | bob@example.com | | 3 | john@example.com | -+----+---------+ ++----+------------------+ ``` 删除重复的邮件地址: @@ -986,7 +986,7 @@ https://leetcode.com/problems/consecutive-numbers/description/ +----+-----+ ``` -查找连续出现三次的数字。 +查找至少连续出现三次的数字。 ```text +-----------------+