// select * from consolidateSheet limit 20;
//select iif(regexp('\d+',f04),f03,'') 姓名, '投递底薪',f05 对应业务量,iif(lag(f08) over () like '%文书',f08,'') 法律文书 from consolidateSheet limit 200;
create temp table aa as
select fillna(iif(regexp('\d+',f04),f03,'')) 姓名,iif(lag(f04) over () like '投递%底薪%',f04,'') '投递底薪',iif(lag(f05) over () like '%对应业务量%',f05,'') 对应业务量,iif(lag(f08) over () like '%文书%',f08,'') 法律文书 from consolidateSheet limit 63;
//select * from aa limit 200;
select 姓名,colIdxf[1:]{group_concat(%s,'') %s} from aa group by 姓名;
写了2个,
得确比较繁琐,字段太多 |