有个想要在美国工作的好朋友兼同学Carol(反正也没人知道她是谁我就写名字啦哈哈哈)要开始刷LeetCode,所以做一个记录来和她同步刷题~我觉得保持手感还是很重要的,另外也想如果碰到她不会的可以给她讲解,这样也巩固了自己的知识。
日期 | 题目 | 记录 | 知识点 |
---|---|---|---|
8/14/2020 | 1527 Patients With a Condition | LIKE | |
8/14/2020 | 1350 Students With Invalid Departments | NOT IN | |
8/14/2020 | 1303 Find the Team Size | GROUP BY 联结 |
|
8/15/2020 | 1378 Replace Employee ID With The Unique Identifier | LEFT JOIN | |
8/15/2020 | 1484 Group Sold Products By The Date | DISTINCT 分组拼接多个字段GROUP_CONCAT |
|
8/15/2020 | 1068 Product Sales Analysis I | LEFT JOIN | |
8/15/2020 | 1069 Product Sales Analysis II | GROUP BY | |
8/15/2020 | 1407 Top Travellers | 空值转为0的方法: IFNULL(字段,0) coalesce(字段,0) |
|
8/16/2020 | 1251 Average Selling Price | ROUND( , ) 时间处于时间段:BETWEEN AND |
|
8/16/2020 | 511 Game Play Analysis I | MIN() | |
8/16/2020 | 1179 Reformat Department Table | 两种方法: CASE WHEN THEN END IF(条件,满足条件返回的,不满足条件返回的) 要记得加上SUM() |
|
8/16/2020</ |