08 2019 档案

leetcode Sql题目总结 第二弹~
摘要:1, 编写一个 SQL 查询,获取 Employee 表中第 n 高的薪水(Salary)。 + + +| Id | Salary |+ + +| 1 | 100 || 2 | 200 || 3 | 300 |+ + +例如上述 Employee 表,n = 2 时,应返回第二高的薪水 200。如果 阅读全文

posted @ 2019-08-14 10:04 砌墙的石头 阅读(340) 评论(0) 推荐(0)

leetcode Sql题目总结 第一弹~
摘要:1.有一个courses 表 ,有: student (学生) 和 class (课程)。 请列出所有超过或等于5名学生的课。 select class from courses group by class having count(student)>=5; 2. 给定一个 salary 表,如下 阅读全文

posted @ 2019-08-13 10:01 砌墙的石头 阅读(349) 评论(0) 推荐(0)

导航