29_b10.sql 400 B

123456789101112131415161718
  1. --29、데무쟁넓潼痰빵鑒
  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. '29' as ZB_CODE,
  12. '데무쟁넓潼痰빵鑒' as ZB_NAME,
  13. '뤠' as IS_RATIO,
  14. total_user_yw+total_user_kd as QZ_FZ,
  15. total_gl as QZ_FM,
  16. round((total_user_yw+total_user_kd)/total_gl) as BY_QZ
  17. from sqmdb_cost.jt_number_b10
  18. where smonth='202206'