1234567891011121314151617181920212223242526 |
- --30、单载频载扇用户数
- ---地市
- select
- month_id as MONTH_ID,
- '地市' as ZB_TYPE,
- '河北' as PROV_NAME,
- city_code*100 as CITY_ID,
- city_name as CITY_NAME,
- null as GRID_ID,
- null as GRID_NAME,
- '30' as ZB_CODE,
- '单载频载扇用户数' as ZB_NAME,
- '否' as IS_RATIO,
- total_user_yw as QZ_FZ,
- zps_total_with5g as QZ_FM,
- per_zps_user as BY_QZ
- from
- (select month_id,city_name,
- total_user_yw,zps_total_with5g,
- round(total_user_yw/zps_total_with5g) as per_zps_user
- from sqmdb_cost.jt_number_city jnc
- where month_id='202206') a
- join
- (select distinct city_code,city_sname from sqmdb_cost.dict_grid) dg
- on a.city_name=dg.city_sname
- order by dg.city_code
|