|
楼主 |
发表于 2024-1-9 10:50
|
显示全部楼层
RepID+COL1+COL2+COL3-COL1+COL4+COL5-COL3-COL4+COL6-COL7
15798381946
21333122360
39809495120
43105871092
50712002921RepIDCOL1COL2COL3COL4COL5COL6COL7
1-378-684-6
2-231-226
308-5392
4-21-1879-2
5-27-1-92-1select * from Sheet1;
cli_one_dim~Sheet1~1;
create temp table aa as
select RepID,substr(属性,2) 属性,iif(substr(属性,1,1)='-',-数量,数量) 数量 from Sheet1union;
create temp table bb as
select RepID,属性,sum(数量) 数量 from aa group by RepID,属性;
cli_create_two_dim~bb~属性~数量;
select * from bb_two_dim;
cli_dump_find;
|
|