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Z4Sj7BEOEps9RiAVgcWzuu+u++at8Srxyw2XsbMP33aLpvJbjS2AkXH4EpscnAXbA4CZXI4lBQtlbWOU/y4gVORtloKSp011SmKMMLLLvxDwzZjQLPNbmj6MfmehNePjm+w2b85jOj0x2lPzS37mXF8lFteq/UvTi7gWBxKChFlxfMvHAyCoqxFBW6YHHllN34B4bsRgGYvISBYHEoKEWX3aehEgqcjLLRUlTogsWVU3bjHxiyGwVg8hIGgsWhoBRddp+GSihwMspGS1GhCxZXTtmNf2DIbhSAyUsYuDaLa9ZCVVU/AAAAAAAAAAAAdoe1WRwAAAAAAAAAAABQGsDiAAAAAAAAAAAAtgSwOAAAAAAAAAAAgC0BLA4AAAAAAAAAAGBLAIsDAAAAAAAAAADYEsDiAAAAAAAAAAAAtgSwOAAAAAAAAAAAgC0BLA4AAAAAAAAAAGBLAIsDAAAAAAAAAADYEsDiAAAAAAAAAAAAtgSwOAAAAAAAAAAAgC0BLA4AAAAAAAAAAGBLAIsDAAAAAAAAAADYEsDiAAAAAAAAAAAAtgSwOAAAAAAAAAAAgC0BLA4AAAAAAAAAAGBLAIsDAAAAAAAAAADYEsDiAAAAAAAAAAAAtgSwOAAAAAAAAAAAgC0BLA4AAAAAAAAAAGBLAIsDAAAAAAAAAADYEsDiAAAAAAAAAAAAtgSwOAAAAAAAAAAAgC3h/wONG4cCFWyiAAAAAABJRU5ErkJggg==" alt="" />

  

    图:

  select e.*,f.dwjc
from
( select t.cymc,t.dwmc,t.bz2,t.nf,t.yf,concat(t.nf,t.yf) yearmonth,t.sr_bqsj,t.lr_bqsj,t.bz3,(select 'ml' from dual) datatype from fys_qyjyfx_two t
where t.cymc='464b66a4-9ed0-4ba0-9f57-989058ca4b5b'
) e join fys_dic_dwjbxx_s f on e.dwmc=f.dwbsm and yearmonth>='' and yearmonth<=''

    转之后:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxgAAABYCAIAAAD5r8bCAAASoUlEQVR4nO2dPY7rOBaFuYzZx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Tb2lZOnGVkdx1sShufgWiIvnfE9UuRGUvOpPftU7YE+zwoYJ6RZwnr/gq006/sy/66XSihnK48UwEhBPaU6l+nBNWLxyuq2JInVbS1PhMnVJSvqXnOvK6aOeFjxMEljpOx5a1sjJR/HUx7C1bGyTtZJyn70eX+3MHdH+wnYvONG/dqMcOdVLkJGH7cexv6xKMye5PCqhrnS3yVhPKlnZ898GSnNPSZvcQzrVatzUS5Os/spdw2ewSatOqHliTC1uvar0LrX3OuKqSMeVjxMEhgpMgGQ9s3m47U67MCxLtZ5O6Qy+xKX/XSZG7udiUVDeSIrIxVIqpR7QszXH/iqP5os5WE+2tONJ8xt7MlIKSZsZUYqkJoH1urVi1G9es29rpg64mHFwyTWSLnY4H8R82ns3Eh9JDUPrNWrl+11NavX3OuKqSMeVjxMYKSKsUPXssOQ0lLzwFq9etleV7N6zb2umDriYcXDBEaqGDt0LTsMKS01D6zVq5ftdTWr19zriqkjHlY8TFYbqVMuhBDfAAAAAADbk89IAQAAAACAARgpAAAAAAAmMFIAAAAAAExgpAAAAAAAmMBIAQAAAAAwgZECAAAAAGACIwUAAAAAwARGCgAAAACACYwUAAAAAAATGCkAAAAAACYwUgAAAAAATGCkAAAAAACYwEgBAAAAADCBkQIAAAAAYAIjBQAAAADABEYKAAAAAIAJjBQAAAAAABMYKQAAAAAAJjBSAAAAAABMYKQAAAAAAJjASAEAAAAAMIGRAgAAAABgAiMFAAAAAMAERgoAAAAAgAmMFAAAAAAAExgpAAAAAAAmMFIAAAAAAExgpAAAAAAAmMBIAQAAAAAwgZECAAAAAGACIwUAAAAAwARGCgAAAACAyf8BDpP1EA0PBwkAAAAASUVORK5CYII=" alt="" />

    代码:(重点decode,case when)

     SELECT
dwjc as "单位",
nf as "年份",
fxdx_name as "分析对象",
sum(decode(yf, '',data ,null)) as "1月",
sum(decode(yf, '', data,null)) as "2月",
sum(decode(yf, '', data,null)) as "3月",
sum(decode(yf, '', data,null)) as "4月",
sum(decode(yf, '', data,null)) as "5月",
sum(decode(yf, '', data,null)) as "6月",
sum(decode(yf, '', data,null)) as "7月",
sum(decode(yf, '', data,null)) as "8月",
sum(decode(yf, '', data,null)) as "9月",
sum(decode(yf, '', data,null)) as "10月",
sum(decode(yf, '', data,null)) as "11月",
sum(decode(yf, '', data,null)) as "12月"
from
(
select
d.fxdx_name,
c.dwjc,
c.nf,
c.yf,
(case c.datatype
when 'sr' then sr_bqsj
when 'ml' then lr_bqsj
when 'lr' then lr_bqsj
else to_number(bz3) end
) as data
from
(
select e.*,f.dwjc
from
( select t.cymc,t.dwmc,t.bz2,t.nf,t.yf,concat(t.nf,t.yf) yearmonth,t.sr_bqsj,t.lr_bqsj,t.bz3,(select 'ml' from dual) datatype from fys_qyjyfx_two t
where t.cymc='464b66a4-9ed0-4ba0-9f57-989058ca4b5b'
) e join fys_dic_dwjbxx_s f on e.dwmc=f.dwbsm and yearmonth>='' and yearmonth<=''
) c join fys_dic_fxdx d on c.bz2=d.fys_dic_fxdx_id and (d.fys_dic_fxdx_id='49974bb3-c246-4208-af60-cf7a098a3305')
)g
group by dwjc,nf,fxdx_name
ORDER BY dwjc

2.列转行,

  1).用union即可

  2).listagg

  3).insert all into ...select ....

上一篇:div水平居中


下一篇:Hadoop记录-Hadoop shell常用命令