16_b10.sql 502 B

12345678910111213141516171819
  1. --16、单站铁塔租赁费(月)
  2. ---北10数据(select * from sqmdb_cost.report50016)
  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. '16' as ZB_CODE,
  12. '单站铁塔租赁费(月)' as ZB_NAME,
  13. '否' as IS_RATIO,
  14. column2*10000 as QZ_FZ,
  15. column5 as QZ_FM,
  16. column2*10000/column5/6 as BY_QZ
  17. from sqmdb_cost.report50016
  18. where sname in ('北京','天津','河北','山西','内蒙古','辽宁','吉林','黑龙江','山东','河南')
  19. and smonth='202206'