上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页
摘要: 从不订购的客户 sql 编程 1. 地址 https://leetcode-cn.com/problems/customers-who-never-order/ 2. 解法 子查询 select Name as Customers from Customers where Id not in ( s 阅读全文
posted @ 2020-06-14 13:18 吴丹阳-V 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 查找重复的电子邮箱 sql 编程 1. 地址 https://leetcode-cn.com/problems/duplicate-emails/ 2. 解法 内连接,或者多表查询 email 相同,但是 id 不同的行 select distinct p1.Email from Person p1 阅读全文
posted @ 2020-06-14 13:14 吴丹阳-V 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 超过经理收入的员工 sql 编程 1. 地址 https://leetcode-cn.com/problems/employees-earning-more-than-their-managers/ 2. 解法 本质上就是内连接,然后算笛卡尔积之后过滤不符合的部分 # Write your MySQ 阅读全文
posted @ 2020-06-13 22:55 吴丹阳-V 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 第二高的薪水 这是一道使用 sql 语句编程的题目 1. 地址 https://leetcode-cn.com/problems/second-highest-salary/ 2. 解法 两种方法: 对表进行排序之后,使用 limit 取偏移量 select ( select distinct Sa 阅读全文
posted @ 2020-06-09 13:12 吴丹阳-V 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Excel表列序号 1. 地址 https://leetcode-cn.com/problems/excel-sheet-column-number/ 2. 思路 代码即思路: class Solution { /** * @param String $s * @return Integer */ 阅读全文
posted @ 2020-06-08 13:08 吴丹阳-V 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页