08_b10.sql 457 B

12345678910111213141516171819
  1. --08、网络能耗占收比
  2. ---北10
  3. select
  4. smonth as MONTH_ID,
  5. '北10' as ZB_TYPE,
  6. sname as PROV_NAME,
  7. null as CITY_ID,
  8. null as CITY_NAME,
  9. null as GRID_ID,
  10. null as GRID_NAME,
  11. '8' as ZB_CODE,
  12. '网络能耗占收比' as ZB_NAME,
  13. '是' as IS_RATIO,
  14. column1 as QZ_FZ,--能耗成本,
  15. column5 as QZ_FM,--本年收入累计,
  16. column1/column5 as BY_QZ
  17. from sqmdb_cost.report50010
  18. where sname in('北京','天津','河北','山西','内蒙古','辽宁','吉林','黑龙江','山东','河南')
  19. and smonth='202206'