From 36fd0d5d89340c5d22ca4628606c646c3f831501 Mon Sep 17 00:00:00 2001 From: adekurniawan Date: Tue, 6 Feb 2024 10:47:05 +0700 Subject: [PATCH] update nop query --- V2/Request/Ristanto/daily_nop.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 V2/Request/Ristanto/daily_nop.sql diff --git a/V2/Request/Ristanto/daily_nop.sql b/V2/Request/Ristanto/daily_nop.sql new file mode 100644 index 0000000..8083118 --- /dev/null +++ b/V2/Request/Ristanto/daily_nop.sql @@ -0,0 +1,19 @@ +select region + , level_value as nop + , date + , sum(payload_mbyte)::numeric(100, 2) as payload_mbyte + , sum(case + when region = 'PUMA' then sum_of_maximum_number_of_rrc_connection_user_unit + else maximum_number_of_rrc_connection_user_unit end) as sum_of_maximum_number_of_rrc_connection_user + , sum(sum_of_active_users_rnp)::numeric(100, 2) as sum_of_active_users_rnp + , avg(active_users_rnp)::numeric(100, 2) as active_users_rnp +from app.fact_category_kpi_4g_daily m +where level_type = 'NOP' + and all_band = true + and date between '2022-01-01' and date_int(1) +-- and region = 'SULAWESI' +-- and region = 'KALIMANTAN' +-- and region = 'PUMA' +group by region, level_value, date +order by region, level_value, date desc +; \ No newline at end of file