|
发表于 2021-4-8 14:06
来自手机
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
zpy2 发表于 2021-4-8 12:05
with a as (select *,regexp2('(.*)\s(.*)',打卡时间,1) 打卡日期,regexp2('(.*)\s(.*)',打卡时间,2) 时间 ...
with a as (select *,regexp2('2021\/3\/(\d+)\s(.*)',打卡时间,1) 打卡日期,regexp2('(.*)\s(.*)',打卡时间,2) 时间 from 姓名打卡时间明细表),aa as (select 姓名,打卡日期,group_concat(时间,'<br>') 聚合时间 from a group by 姓名,打卡日期 order by cast(打卡日期 as INTEGER))
select 姓名,group_concat(打卡日期||'<br>'||聚合时间,'</td><td>') 签到 from aa group by 姓名 |
|