SELECT machine_id,ROUND(SUM(IF(activity_type='end',timestamp,timestamp*-1))/count(distinct process_id),3) processing_time
FROM Activity
GROUPBY machine_id
1.3 运行截图
2 员工奖金
2.1 题目内容
2.1.1 基本题目信息
2.1.2 示例输入输出
2.2 示例sql语句
# 根据输出示例可知: null值也是需要被统计在内的SELECT e.name,b.bonus
FROM Employee e
LEFTJOIN Bonus b
ON e.empId=b.empId
WHERE b.bonus<1000OR b.bonus ISNULL
2.3 运行截图
3 学生们参加各科测试的次数
3.1 题目内容
3.1.1 基本题目信息1
3.1.2 基本题目信息2
3.1.3 示例输入输出
a 示例输入
b 示例输出
3.2 示例sql语句
SELECT t1.student_id,t1.student_name,t1.subject_name,
IFNULL(t2.num,0) attended_exams
FROM(SELECT s1.student_id,s1.student_name,s2.subject_name
FROM Students s1
CROSSJOIN Subjects s2
)t1
LEFTJOIN(SELECT student_id,subject_name,count(*) num
FROM Examinations e
GROUPBY student_id,subject_name
)t2
ON t1.student_id=t2.student_id AND t1.subject_name=t2.subject_name
ORDERBY t1.student_id asc,t1.subject_name asc
English Learning - L3 作业打卡 Lesson4 Day26 2023.5.30 周二 引言🍉句1: It is easy to find my husband in a crowd.成分划分弱读连读语调 🍉句2: He stands almost two meters tall.成分划分爆破语调 🍉句3: He is a tall drink of wate…
English Learning - L3 作业打卡 Lesson4 Day27 2023.5.31 周三 引言🍉句1: It is so crowded that we are packed like sardines – just like small fish in a can.成分划分弱读连读爆破语调 🍉句2: My supervisor at work is sometimes out to lunch.…
PTP是一个网络同步时钟的协议,全称是Precise Time Protocol,也称为IEEE 1588,其有IEEE1588v1和IEEE1588v2两个版本(其中v1版本是为工业自动化测量和控制系统开发的,适用于工业局域网应用。v2版本是在v1版本的基础上&am…
概述
任何稍微只要有一点经验的开发者都知道HTTP 405,表示方法不支持。如,本来是定义为POST接口,前端使用GET请求,就会报错。
但是我还真遇上一次405 METHOD_NOT_ALLOWED "Request method POST not supported"问题&am…
English Learning - L3 作业打卡 Lesson4 Day25 2023.5.29 周一 引言🍉句1: My husband has a good job.成分划分弱读连读爆破语调 🍉句2: He makes enough money to support our family.成分划分弱读连读语调 🍉句3: So we say he brings ho…