当前位置:网站首页>数据分析之SQL面试真题
数据分析之SQL面试真题
2022-07-31 05:17:00 【今晚务必早点睡】
题目:
解答:

其中,第五行的sql是:
query = "select 单据编号,活动内容,活动开始时间,活动结束时间,row_number() over(partition by 单据编号 order by 活动结束时间 asc) as num from df"



其中第11行的sql是:
query = "select 单据编号,(select case when num =1 then '流程开始' else 活动内容 end as 活动名称 from df2) as 活动名称,活动开始时间,活动结束时间 from df1"
边栏推荐
- 2021年软件测试面试题大全
- VTK:Could not locate vtkTextRenderer object.
- DSPE-PEG-Azide DSPE-PED-N3 Phospholipid-Polyethylene Glycol-Azide Lipid PFG
- Podspec automatic upgrade script
- 浅谈对分布式模式下CAP的理解
- Cholesterol-PEG-NHS NHS-PEG-CLS cholesterol-polyethylene glycol-active ester can modify small molecular materials
- CAS:474922-22-0 Maleimide-PEG-DSPE Phospholipid-Polyethylene Glycol-Maleimide Brief Description
- Talking about the understanding of CAP in distributed mode
- Notes on creating a new virtual machine in Hyper-V
- Navicat从本地文件中导入sql文件
猜你喜欢

Embedding前沿了解

RuntimeError: CUDA error: no kernel image is available for execution on the device问题记录

MW: 3400 4-Arm PEG-DSPE four-arm-polyethylene glycol-phospholipid a saturated 18-carbon phospholipid

Cholesterol-PEG-Thiol CLS-PEG-SH 胆固醇-聚乙二醇-巯基

Understanding of js arrays

cv2.imread()

Multi-Modal Face Anti-Spoofing Based on Central Difference Networks学习笔记

Pytorch学习笔记09——多分类问题

Numpy常用函数

pytorch模型微调finetuning训练image_dog(kaggle)
随机推荐
Tensorflow——演示
为数学而歌之伯努利家族
understand js operators
JS写一段代码,判断一个字符串中出现次数最多的字符串,并统计出现的次数JS
mPEG-DSPE 178744-28-0 Methoxy-polyethylene glycol-phosphatidylethanolamine linear PEG phospholipids
cocos2d-x-3.2 create project method
MYSQL事务与锁问题处理
pyspark.ml feature transformation module
MYSQL transaction and lock problem handling
ROS之service编程的学习和理解
QT VS中双击ui文件无法打开的问题
VS connects to MYSQL through ODBC (1)
Introduction to CLS-PEG-FITC Fluorescein-PEG-CLS Cholesterol-PEG-Fluorescein
Xiaomi mobile phone SMS location service activation failed
CAS:474922-22-0 Maleimide-PEG-DSPE 磷脂-聚乙二醇-马来酰亚胺简述
RuntimeError: CUDA error: no kernel image is available for execution on the device问题记录
YOLOX中的SimOTA
VS通过ODBC连接MYSQL(一)
VS2017 connects to MYSQL
日志jar包冲突,及其解决方法