![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode刷题_database
许帅_
只要潜心修行,终会获得成功。
编程之久除了算法和数据结构,什么也不属于我们。
展开
-
LeetCode_database刷题记录(595. 大的国家)
这里有张 World 表 name continent area population gdp Afghanistan Asia 652230 25500100 20343000 Afghanistan Asia 652230 25500100 20343000 Albania Europe 28748 ...原创 2018-09-11 14:04:25 · 233 阅读 · 0 评论 -
LeetCode_database刷题记录(182. 查找重复的电子邮箱)
编写一个 SQL 查询,查找 Person 表中所有重复的电子邮箱。 示例: Id Email 1 a@b.com 2 c@d.com 3 a@b.com 根据以上输入,你的查询应返回以下结果: Email a@b.com 建表sql语句: Create table If Not Exists Pers...原创 2018-09-11 14:18:25 · 409 阅读 · 0 评论 -
LeetCode_database刷题记录(627. 交换工资)
给定一个 salary表,如下所示,有m=男性 和 f=女性的值 。交换所有的 f 和 m 值(例如,将所有 f 值更改为 m,反之亦然)。要求使用一个更新查询,并且没有中间临时表。 例如: id name sex salary 1 A m 2500 2 B f 1500 3 C m 5500 4 ...原创 2018-09-13 14:08:37 · 233 阅读 · 0 评论 -
LeetCode_database刷题记录(620. 有趣的电影)
编写一个 SQL 查询,查找 Person 表中所有重复的电子邮箱。 示例: Id Email 1 a@b.com 2 c@d.com 3 a@b.com 根据以上输入,你的查询应返回以下结果: Email a@b.com 建表sql语句: Create table If Not Exists Pe...原创 2018-09-13 14:25:31 · 324 阅读 · 0 评论 -
LeetCode_database刷题记录(181. 超过经理收入的员工)
Employee 表包含所有员工,他们的经理也属于员工。每个员工都有一个 Id,此外还有一列对应员工的经理的 Id。 Id Name Salary ManagerId 1 Joe 70000 3 2 Henry 80000 4 3 Sam 60000 NULL 4 Max 90000 NULL...原创 2018-09-13 14:33:15 · 336 阅读 · 0 评论