14_city.sql 478 B

12345678910111213141516171819
  1. --14、单载频载扇能耗(月)
  2. ---地市
  3. select
  4. smonth as MONTH_ID,
  5. '地市' as ZB_TYPE,
  6. '河北' as PROV_NAME,
  7. city_code as CITY_ID,
  8. city_sname as CITY_NAME,
  9. null as GRID_ID,
  10. null as GRID_NAME,
  11. '14' as ZB_CODE,
  12. '单载频载扇能耗(月)' as ZB_NAME,
  13. '否' as IS_RATIO,
  14. cost_yw+cost_hexin as QZ_FZ,
  15. zps_num_with5g as QZ_FM,
  16. case when zps_num_with5g=0 then 0 else (cost_yw+cost_hexin)/zps_num_with5g/6 end as BY_QZ
  17. from sqmdb_cost.rpt_dzpzs_cost_city
  18. where smonth='202206'
  19. order by city_code