chengben_other_4_city.sql 409 B

123456789101112131415
  1. ---ÌúËþµ¥Õ¾×âÁÞ·Ñ-µØÊÐ
  2. ---chengben_other_4_city_202203.csv
  3. select
  4. c.smonth,
  5. c.city_name,
  6. c.tower_cost as tower_cost_total,
  7. c.tower_num_avg as tower_num,
  8. c.tower_cost_avg as tower_cost_avg_city,
  9. dg.city_code*100 as city_code
  10. from sqmdb_cost.rpt_tower_cost_city c
  11. join
  12. (select distinct city_code,city_sname from sqmdb_cost.dict_grid) dg
  13. on c.city_name=dg.city_sname
  14. where smonth='202204'
  15. order by dg.city_code