chengben_other_3_city.sql 396 B

12345678910111213141516
  1. --13、单端口能耗成本(月)
  2. ---地市
  3. ---chengben_other_3_city_202203.csv
  4. select
  5. c.smonth,
  6. dg.city_name,
  7. c.cost_nenghao,
  8. c.port_inuse as ftth_port_count,
  9. c.cost_port_nenghao,
  10. dg.city_code*100 as city_code
  11. from sqmdb_cost.rpt_dport_cost_city c
  12. join
  13. (select distinct city_code,city_sname,city_name from sqmdb_cost.dict_grid) dg
  14. on c.city_sname=dg.city_sname
  15. where smonth='202204'
  16. order by dg.city_code