sql - 带条件的循环标识符
问题描述
我想以某种方式使标识符列存在,是否有可能在下面有类似的数据?逻辑:每行类型有相同的数据,标识符重复,直到有不同类型的数据,即使之前已经有相同类型的数据
dt type user_id trx identifier
2021-08-28 online 100 001 1
2021-08-29 online 100 002 1
2021-08-30 offline 100 003 2
2021-09-04 online 100 004 3
2021-09-08 web 100 005 4
2021-09-09 online 100 006 5
2021-09-11 offline 100 007 6
2021-09-15 offline 100 008 6
解决方案
推荐阅读
- c# - C#中的自定义文本框
- python - pygame.Surface 对象没有属性“prep_ships”
- scala - Spark/Scala - 无法执行用户定义的函数
- google-apps-script - Google Script - 创建日历并分享给我
- python - Python 信号:ValueError:信号仅在主线程中有效
- amazon-web-services - 如何仅通过ec2中的域允许公共流量
- c - 每次执行任何代码时,Dev-C++ 都会提示我进入 stdio.h 文件
- r - 是否可以将 gbm.step 结果转换为数据框?
- pandas - 在 Pandas 中将标头添加到 .data 文件
- azure - Azure - 自动将新的 Appservice 添加到 Frontdoor