报表_6_超高能耗.sql 587 B

12345678910111213141516171819202122232425
  1. --6 ³¬¸ßÄܺÄÕ¾µã
  2. select distinct
  3. city_sname as city_name,
  4. station_sname as jz_name,
  5. station_type as jz_type,
  6. station_level as cj,
  7. property_type as qs_type,
  8. meter_type_name as gd_type,
  9. accrued_power as dy_dl,
  10. eprice as df_dj,
  11. accrued_cost as dy_df,
  12. cost_unit_name as cb_zx,
  13. lilun_power as dldb_dl,
  14. over_lilun_power as dldb_fd,
  15. lilun_eprice as dfdb_dj,
  16. lilun_cost as dfdb_df,
  17. over_lilun_cost as dfdb_fd,
  18. city_code as city_id,
  19. smonth as month_id,
  20. grid_code as county_id,
  21. area_name as county_name,
  22. sort_id_city
  23. from sqmdb_cost.rpt_baobiao_6_cgnh
  24. where smonth='202205'
  25. order by sort_id_city