|
发表于 2024-1-31 20:56
来自手机
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
create temp table aa as
select rowid old_rowid,年级总平,语文均分,语文高分,数学均分,数学高分,英语均分,英语高分,政治均分,政治高分,历史均分,历史高分,地理均分,地理高分,物理均分,物理高分,化学均分,化学高分,生物均分,生物高分 from Sheet1 where 统计类别 like 'A' and rowid>2;
cli_one_dim~temp.aa~1;
//select * from aaunion where 属性 not like '%高分%';
create temp table bb as
select old_rowid,属性||'</td><td>名次' col,数量||'</td><td>'||rank() over ( partition by 属性 order by cast(数量 as float) desc) `data` from aaunion where 属性 not like '%高分%' order by old_rowid,instr('年级总平,语文均分,语文高分,数学均分,数学高分,英语均分,英语高分,政治均分,政治高分,历史均分,历史高分,地理均分,地理高分,物理均分,物理高分,化学均分,化学高分,生物均分,生物高分',属性);
//select * from bb;
cli_create_two_dim_no_order~bb~col~data;
select old_rowid,`学 校`,班级,学生人数,`巩固率%`,bb_two_dim.* from Sheet1 join bb_two_dim on sheet1.rowid=(old_rowid);
得确比较繁琐的。这个表头标题堆叠不太方便。 |
|