M.201905171615875
M.201905171615875
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
M.201905171615875的博客
全部文章
(共15篇)
题解 | #对试卷得分做min-max归一化#
创建子表t,记录每个归一化的成绩 最大值:max(score)over(partition by exam_id) 最小值:min(score)over(partition by exam_id) 归一化之后的新值:if(最大=最小,原值,归一化的值) 条件:成绩不为空 and 难度困难,whe...
2022-07-14
0
174
题解 | #某店铺的各商品毛利率及店铺整体毛利率#
先找到店铺所有商品id,进价,售价,销售数量,生成子表a 联结:using(product_id),using(order_id) 条件:where..and... 2021年10月以来 ...
2022-07-12
0
163
题解 | #满足条件的用户的试卷完成数和题目练习数#
找到大佬们id 连接exam_record和examination_info,user_info 条件:高难度SQL试卷得分平均值大于80并且是7级 分组:uidselect uid from user_info left join exam_record using(uid) left ...
2022-07-09
0
141
获取所有员工当前的manager
1.联结什么,部门一致 de.dept_no = dm.dept_no #找自己的经理当然是部门一致,不是员工号 2.限制条件是什么:两表的当前日期、当员工自己就是经理时,不显示自己的经理 de.to_date = '9999-01-01...
2020-11-26
1
377
选择不在另一张表中的数据
查找不在另一张表中的数据,思路: 1. not in + 子查询 select emp_no from employees where employees.emp_no not in (select emp_...
2020-11-26
1
409
首页
上一页
1
2
下一页
末页