PHP学院的中学生 2022-08-02 17:58:43 850次浏览 0条回复 0 0 0
select 
htlb,
sum(HTZJE) as ysje,--预算金额
sum(yfje) as ljfse,--累计发生额
sum(jyje) as jyje,--结余金额
(sum(jyje) / sum(HTZJE)) as jezb, --结余占比
(sum(yfje) / sum(HTZJE)) as fyzb,--费用占比
case htlb
when '1' then 'cblb1'
when '2' then 'cblb2'
when '3' then 'cblb3'
ELSE '其他' END bieMing
from tb_table
group by htlb
    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册