|
发表于 2023-5-7 18:01
来自手机
|
显示全部楼层
create temp table aa as
select 年||'_'||月 年月,'a' 序,类型,销售额万 from 表头标题栏堆叠展示
union all
select 年||'_'||月 年月,'b',区域,销售额万 from 表头标题栏堆叠展示
union all
select 年||'_'||月 年月,'c',产品,销售额万 from 表头标题栏堆叠展示;
create temp table bb as
select * from aa group by 年月,类型 order by 年月 COLLATE NATURAL_CMP;
cli_create_two_dim_no_order~bb~年月~销售额万;
//select * from bb_two_dim;
cli_stack_headers~bb_two_dim~(.+)_(.+);
create temp table cc as
select count(*) over (partition by 序) 序行数,* from bb_two_dim;
cli_stack_headers~cc~(.+)_(.+);
|
|