chengben_other_3_b10.sql 542 B

1234567891011121314151617181920212223
  1. --13、单端口能耗成本(月)
  2. ---北10
  3. ---chengben_other_3_b10_202203.csv
  4. select
  5. smonth,
  6. sname,
  7. cost_nenghao,
  8. port_inuse as ftth_port_count,
  9. cost_port_nenghao,
  10. case
  11. when sname='北京' then 110000
  12. when sname='天津' then 120000
  13. when sname='河北' then 130000
  14. when sname='山西' then 140000
  15. when sname='内蒙古' then 150000
  16. when sname='辽宁' then 210000
  17. when sname='吉林' then 220000
  18. when sname='黑龙江' then 230000
  19. when sname='山东' then 370000
  20. when sname='河南' then 410000
  21. end as prov_code
  22. from sqmdb_cost.rpt_dport_cost_b10
  23. where smonth='202204'