摘要: 题目链接:https://leetcode cn.com/problems/classes more than 5 students/ 题目 有一个 表 ,有: student (学生) 和 class (课程)。 请列出所有超过或等于5名学生的课。 例如,表: + + + | student | 阅读全文
posted @ 2019-10-27 00:50 Hider1214 阅读(286) 评论(0) 推荐(0)
摘要: 题目链接:https://leetcode cn.com/problems/delete duplicate emails/ 题目 编写一个 SQL 查询,来删除 表中所有重复的电子邮箱,重复的邮箱里只保留 最小的那个。 + + + | Id | Email | + + + | 1 | john@e 阅读全文
posted @ 2019-10-27 00:49 Hider1214 阅读(811) 评论(0) 推荐(1)
摘要: 题目链接:https://leetcode cn.com/problems/rising temperature/ 题目 给定一个 表,编写一个 SQL 查询,来查找与之前(昨天的)日期相比温度更高的所有日期的 Id。 + + + + | Id(INT) | RecordDate(DATE) | T 阅读全文
posted @ 2019-10-27 00:48 Hider1214 阅读(494) 评论(0) 推荐(0)
摘要: 题目链接:https://leetcode cn.com/problems/department highest salary/ 题目 表包含所有员工信息,每个员工有其对应的 Id, salary 和 department Id。 + + + + + | Id | Name | Salary | D 阅读全文
posted @ 2019-10-27 00:46 Hider1214 阅读(474) 评论(0) 推荐(0)