update nop
This commit is contained in:
parent
36fd0d5d89
commit
ba9f5144dc
|
|
@ -1,19 +1,21 @@
|
||||||
select region
|
select date
|
||||||
, level_value as nop
|
, to_char(date, 'DD-Mon') as date2
|
||||||
, date
|
, right(yearweek, 2) as week
|
||||||
, sum(payload_mbyte)::numeric(100, 2) as payload_mbyte
|
, to_char(date, 'YYYY') as year
|
||||||
, sum(case
|
, region
|
||||||
when region = 'PUMA' then sum_of_maximum_number_of_rrc_connection_user_unit
|
, level_value as nop
|
||||||
else maximum_number_of_rrc_connection_user_unit end) as sum_of_maximum_number_of_rrc_connection_user
|
, sum(payload_mbyte)::numeric(100, 2) as payload_mbyte
|
||||||
, sum(sum_of_active_users_rnp)::numeric(100, 2) as sum_of_active_users_rnp
|
, sum(sum_of_active_users_rnp)::numeric(100, 2) as active_users_rnp
|
||||||
, avg(active_users_rnp)::numeric(100, 2) as active_users_rnp
|
, sum(sum_of_maximum_number_of_rrc_connection_user_unit) as maximum_number_of_rrc_connection_user
|
||||||
|
, (sum(payload_mbyte) / sum(sum_of_active_users_rnp))::numeric(100, 2) as "payload/active_users_rnp"
|
||||||
|
, (sum(payload_mbyte) / sum(sum_of_maximum_number_of_rrc_connection_user_unit))::numeric(100, 2) as "payload/maximum_number_of_rrc_connection_user"
|
||||||
from app.fact_category_kpi_4g_daily m
|
from app.fact_category_kpi_4g_daily m
|
||||||
where level_type = 'NOP'
|
where level_type = 'NOP'
|
||||||
and all_band = true
|
and all_band = true
|
||||||
and date between '2022-01-01' and date_int(1)
|
and date between '2023-08-01' and date_int(1)
|
||||||
-- and region = 'SULAWESI'
|
-- and region = 'SULAWESI'
|
||||||
-- and region = 'KALIMANTAN'
|
-- and region = 'KALIMANTAN'
|
||||||
-- and region = 'PUMA'
|
-- and region = 'PUMA'
|
||||||
group by region, level_value, date
|
group by date, right(yearweek, 2), region, level_value
|
||||||
order by region, level_value, date desc
|
order by region, level_value, date
|
||||||
;
|
;
|
||||||
Loading…
Reference in New Issue