摘要:
(1)concat_ws() select user ,concat_ws(';' , collect_set(cast(amt as string))) as amt from table group by user (2)concat() select concat('202211','04') 阅读全文
摘要:
select date_flag,category_flag,field,LAG(filed, 1) OVER (PARTITION BY category_flag ORDER BY date_flag) --同组前一个,LEAD(filed, 1) OVER (PARTITION BY cate 阅读全文