This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Period start time WSCSSR_2G SDSR TCH_BLOCK_RAT DCR_2G HOSR_2G
PS Erlangs = max( UL PS Erlangs, DL PS Erlangs) = Max((a.rlc_data_blocks_ul_cs1 + a.rlc_data_blocks_ul_cs2 + a.BAD_FRAME_IND_UL_CS1 + a.BAD_FRAME_IND_UL_CS2 + a.BAD_FRAME_IND_UL_UNACK + a.rlc_mac_cntrl_blocks_ul + a.ignor_rlc_data_bl_ul_due_bsn * X + sum over MCS0..6 of (b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode + b.bad_rlc_valid_hdr_ul_ack + b.bad_rlc_valid_hdr_ul_unack + b.bad_rlc_bad_hdr_ul_ack + b.bad_rlc_bad_hdr_ul_unack) + sum over MCS7..9 of (b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode + b.bad_rlc_valid_hdr_ul_ack + b.bad_rlc_valid_hdr_ul_unack + b.bad_rlc_bad_hdr_ul_ack + b.bad_rlc_bad_hdr_ul_unack)/2) + sum over MCS-11..12 of (b.ul_rlc_blocks_in_ack_mode + b.bad_rlc_valid_hdr_ul_unack +b.bad_rlc_valid_hdr_ul_ack + b.bad_rlc_bad_hdr_ul_ack + b.bad_rlc_bad_hdr_ul_unack +b.ul_rlc_blocks_in_unack_mode) --------------------------------------------------------------------------------- , period_duration*60*50 (a.rlc_data_blocks_dl_cs1 + a.rlc_data_blocks_dl_cs2 + a.retra_rlc_data_blocks_dl_cs1 + a.retra_rlc_data_blocks_dl_cs2 + a.rlc_mac_cntrl_blocks_dl + sum over mcs1..6 of (b.dl_rlc_blocks_in_ack_mode + b.dl_rlc_blocks_in_unack_mode + b.retrans_rlc_data_blocks_dl) + sum over mcs7..9 of (b.dl_rlc_blocks_in_ack_mode + b.dl_rlc_blocks_in_unack_mode + b.retrans_rlc_data_blocks_dl)/2) + sum over MCS-11..12 of (b.dl_rlc_blocks_in_ack_mode + b.dl_rlc_blocks_in_unack_mode + b.retrans_rlc_data_blocks_dl)) ------------------------------------------------------------------------------------- period_duration*60*50) Where X = 0.5 * A/(A+B) + 1 * B/(A+B) A = sum over MCS7...9 of (b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode) B = (sum over MCS1...6 of (b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode))+ a.rlc_data_blocks_ul_cs1 + a.rlc_data_blocks_ul_cs2 + sum over MCS-11..12 of (b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode) Counters from table(s): a = RBS_PS_PCU_{OBJ_AGG}_{TIME_AGG} b = rbs_ps_codingsc_{OBJ_AGG}_{TIME_AGG}
ava_45a 100 * -------------- ava_45a + uav_22 Reduced version of the formula above sum(decode(trx_type,0,ave_sdcch_sub) #avail normal + sum(decode(trx_type,1,ave_sdcch_sub) #avail extended 100 * ------------------------------------------------------------------------ sum(decode(trx_type,0,ave_sdcch_sub) #avail normal + sum(decode(trx_type,1,ave_sdcch_sub) #avail extended + nvl(sum(decode(trx_type,0,ave_non_avail_sdcch * RES_AV_DENOM1)),0) # unavail normal + nvl(sum(decode(trx_type,1,ave_non_avail_sdcch * RES_AV_DENOM1)),0) # unavail extended = sum(ave_sdcch_sub) 100 * -------------------------------------------- sum(ave_sdcch_sub) + nvl(sum(ave_non_avail_sdcch * RES_AV_DENOM1)) = ava_4
A33
traffic.SUCC_TCH_SEIZ_CALL_ATTEMPT
A34
traffic.TCH_REQUESTS_CALL_ATTEMPT
A35
CONVER_STARTED - MSC_I_TCH_TCH
A36
sum(ave_busy_sdcch) / sum(res_av_denom15) Counters from table(s): RBS_PS_RESAVAIL_{OBJ_AGG}_{TIME_AGG}
A37
( (sum over MCS-1 (xx)* 22+ sum over MCS-2 (xx)* 28+ sum over MCS-3 (xx)* 37+ sum over MCS-4 (xx)* 44+ sum over MCS-5 (xx)* 56+ sum over MCS-6 (xx)* 74+ sum over MCS-7 (xx/2)*112+ sum over MCS-8 (xx/2)*136+ sum over MCS-9 (xx/2)*148)) )+ (sum over MCS-1 (yy)* 22+ sum over MCS-2 (yy)* 28+ sum over MCS-3 (yy)* 37+ sum over MCS-4 (yy)* 44+ sum over MCS-5 (yy)* 56+ sum over MCS-6 (yy)* 74+ sum over MCS-7 (yy/2)*112+ sum over MCS-8 (yy/2)*136+ sum over MCS-9 (yy/2)*148) ) /1024 Where xx= (UL_RLC_BLOCKS_IN_ACK_MODE+UL_RLC_BLOCKS_IN_UNACK_MODE) Where yy= DL_RLC_BLOCKS_IN_ACK_MODE + DL_RLC_BLOCKS_IN_UNACK_MODE
A38
All GPRS ul Payload data (kbytes) = sum(a.rlc_data_blocks_ul_cs1 *20 + a.rlc_data_blocks_ul_cs2 *30 + sum over MCS-11 (b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode)*36 + sum over MCS-12 (b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode)*50 )/1024 Counters from table(s): a = RBS_PS_PCU_{OBJ_AGG}_{TIME_AGG} b = rbs_ps_codingsc_{OBJ_AGG}_{TIME_AGG}
A39
All GPRS DL Payload data (kbytes) = sum(a.rlc_data_blocks_dl_cs1 *20 + a.rlc_data_blocks_dl_cs2 *30 + sum over MCS-11 (b.dl_rlc_blocks_in_ack_mode + b.dl_rlc_blocks_in_unack_mode)*36 + sum over MCS-12 (b.dl_rlc_blocks_in_ack_mode + b.dl_rlc_blocks_in_unack_mode)*50 )/1024 Counters from table(s): a = RBS_PS_PCU_{OBJ_AGG}_{TIME_AGG} b = rbs_ps_codingsc_{OBJ_AGG}_{TIME_AGG}
A40
(sum over MCS-1 (xx)* 22+ sum over MCS-2 (xx)* 28+ sum over MCS-3 (xx)* 37+ sum over MCS-4 (xx)* 44+ sum over MCS-5 (xx)* 56+ sum over MCS-6 (xx)* 74+ sum over MCS-7 (xx/2)*112+ sum over MCS-8 (xx/2)*136+ sum over MCS-9 (xx/2)*148)) ) / 1024 where xx = (UL_RLC_BLOCKS_IN_ACK_MODE + UL_RLC_BLOCKS_IN_UNACK_MODE)
A41
(sum over MCS-1 (xx)* 22+ sum over MCS-2 (xx)* 28+ sum over MCS-3 (xx)* 37+ sum over MCS-4 (xx)* 44+ sum over MCS-5 (xx)* 56+ sum over MCS-6 (xx)* 74+ sum over MCS-7 (xx/2)*112+ sum over MCS-8 (xx/2)*136+ sum over MCS-9 (xx/2)*148)) ) / 1024 where xx = (DL_RLC_BLOCKS_IN_ACK_MODE + DL_RLC_BLOCKS_IN_UNACK_MODE)
A42
sum(a.RLC_data_blocks_UL_CS1*20 + a.RLC_data_blocks_UL_CS2*30 + a.RLC_data_blocks_DL_CS1*20 + a.RLC_data_blocks_DL_CS2*30 + sum over MCS-11 (b.dl_rlc_blocks_in_ack_mode + b.dl_rlc_blocks_in_unack_mode +b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode)*36 + sum over MCS-12 (b.dl_rlc_blocks_in_ack_mode + b.dl_rlc_blocks_in_unack_mode +b.ul_rlc_blocks_in_ack_mode + b.ul_rlc_blocks_in_unack_mode)*50 ) /1024 Counters from table(s): a = RBS_PS_PCU_{OBJ_AGG}_{TIME_AGG} b = rbs_ps_codingsc_{OBJ_AGG}_{TIME_AGG}
TCH Block traffic. [#]TCH Block (traffic. [#]TCHAssign(service [#]TCHAssign(service. [#]TBF Drop C(pcu.NBR [#]TBF Drop C(pcu.NBR [#]Attempt Ou(ho.MSC_ [#]
Cache handler nullEvaluation method tmp tables(1)Init duration 0.95Sql generation 0.017Execution duration 21.693Load from cache noneCreate tmp Tables 21.463Drop tmp Tables 0.152Load data db 0.0020Load data and write to cache none
Start Time End Time Note Sql2016-01-01 09:01:41.322 2016-01-01 09:01:42.378 creating tmp table: jf_resacc_ext2_0181061150
select trunc( p.period_start_time, 'hh24' ) period_start_time, g.ws ws, AVG(SDCCH_LOC_UPD) SDCCH_LOC_UPD, AVG(SUCC_SEIZ_TERM) SUCC_SEIZ_TERM, AVG(SUCC_SEIZ_ORIG) SUCC_SEIZ_ORIG from ( select w.setname ws, leg.la_co_gid ws_gid from w_manual_sets w, utp_legacy leg where w.int_id = leg.la_int_id ) g , utp_common_objects plmn, utp_common_objects bsc, utp_common_objects bcf, utp_common_objects bts, RBS_PS_RESACC_TSL_RAW p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ),
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
trunc( p.period_start_time, 'hh24' ),
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
SUM(bsc_i_sdcch_tch) BSC_I_SDCCH_TCH, SUM(bsc_i_unsucc_a_int_circ_type) BSC_I_UNSUCC_A_INT_CIRC_TYPE, SUM(bsc_o_sdcch_at) BSC_O_SDCCH_AT, SUM(bsc_o_sdcch_tch) BSC_O_SDCCH_TCH, SUM(bsc_o_sdcch_tch_at) BSC_O_SDCCH_TCH_AT, SUM(bsc_o_succ_ho) BSC_O_SUCC_HO, SUM(bsc_o_tch_tch_at) BSC_O_TCH_TCH_AT, SUM(cell_sdcch_at) CELL_SDCCH_AT, SUM(cell_sdcch_tch) CELL_SDCCH_TCH, SUM(cell_sdcch_tch_at) CELL_SDCCH_TCH_AT, SUM(cell_tch_tch_at) CELL_TCH_TCH_AT, SUM(ho_unsucc_a_int_circ_type) HO_UNSUCC_A_INT_CIRC_TYPE, SUM(msc_controlled_in_ho) MSC_CONTROLLED_IN_HO, SUM(msc_i_sdcch_tch) MSC_I_SDCCH_TCH, SUM(msc_i_tch_tch) MSC_I_TCH_TCH, SUM(msc_o_sdcch_at) MSC_O_SDCCH_AT, SUM(msc_o_sdcch_tch) MSC_O_SDCCH_TCH, SUM(msc_o_sdcch_tch_at) MSC_O_SDCCH_TCH_AT, SUM(msc_o_succ_ho) MSC_O_SUCC_HO, SUM(msc_o_tch_tch_at) MSC_O_TCH_TCH_AT from ( select w.setname ws, leg.la_co_gid ws_gid from w_manual_sets w, utp_legacy leg where w.int_id = leg.la_int_id ) g , utp_common_objects plmn, utp_common_objects bsc, utp_common_objects bcf, utp_common_objects bts, rbs_ps_ho_bts_hour p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
trunc( p.period_start_time, 'hh24' ),
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
select trunc( p.period_start_time, 'hh24' ) period_start_time, g.ws ws, SUM(AVE_DUR_UL_TBF_DEN) AVE_DUR_UL_TBF_DEN, SUM(AVE_DUR_DL_TBF_DEN) AVE_DUR_DL_TBF_DEN from ( select w.setname ws, leg.la_co_gid ws_gid from w_manual_sets w, utp_legacy leg where w.int_id = leg.la_int_id ) g , utp_common_objects plmn, utp_common_objects bsc, utp_common_objects bcf, utp_common_objects bts, RBS_PS_PCU_TRXTYPE2_RAW p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
TO_DATE ('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') AND period_start_time < TO_DATE ('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') GROUP BY bsc_gid, bts_gid, bts_id, trx_type) b WHERE a.bts_id = b.bts_id AND a.bsc_gid = b.bsc_gid AND a.period_start_time >= TO_DATE ('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') AND a.period_start_time < TO_DATE ('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') ) p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
TO_DATE ('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') AND period_start_time < TO_DATE ('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') GROUP BY bsc_gid, bts_gid, bts_id, trx_type) b WHERE a.bts_id = b.bts_id AND a.bsc_gid = b.bsc_gid AND a.period_start_time >= TO_DATE ('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') AND a.period_start_time < TO_DATE ('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss')
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
RBS_PS_SERVICE_bts_hour p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
utp_legacy leg where w.int_id = leg.la_int_id ) g , utp_common_objects plmn, utp_common_objects bsc, utp_common_objects bcf, utp_common_objects bts, rbs_ps_pcu_bts_hour p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
utp_common_objects plmn, utp_common_objects bsc, utp_common_objects bcf, utp_common_objects bts, rbs_ps_resavail_bts_hour p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
w.int_id = leg.la_int_id ) g , utp_common_objects plmn, utp_common_objects bsc, utp_common_objects bcf, utp_common_objects bts, rbs_ps_traffic_bts_hour p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and p.bts_gid = bts.co_gid and bts.co_oc_id=4 and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
SUM(DECODE(CODING_SCHEME, 2, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_2, SUM(DECODE(CODING_SCHEME, 3, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_3, SUM(DECODE(CODING_SCHEME, 4, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_4, SUM(DECODE(CODING_SCHEME, 5, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_5, SUM(DECODE(CODING_SCHEME, 6, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_6, SUM(DECODE(CODING_SCHEME, 7, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_7, SUM(DECODE(CODING_SCHEME, 8, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_8, SUM(DECODE(CODING_SCHEME, 9, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_9, SUM(DECODE(CODING_SCHEME, 11, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_11, SUM(DECODE(CODING_SCHEME, 12, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_12, SUM(DECODE(CODING_SCHEME, 1, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_1, SUM(DECODE(CODING_SCHEME, 2, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_2, SUM(DECODE(CODING_SCHEME, 3, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_3, SUM(DECODE(CODING_SCHEME, 4, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_4, SUM(DECODE(CODING_SCHEME, 5, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_5, SUM(DECODE(CODING_SCHEME, 6, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_6, SUM(DECODE(CODING_SCHEME, 7, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_7, SUM(DECODE(CODING_SCHEME, 8, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_8, SUM(DECODE(CODING_SCHEME, 9, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_9, SUM(DECODE(CODING_SCHEME, 11, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_11, SUM(DECODE(CODING_SCHEME, 12, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_12, sum(case when (coding_scheme>=1 and coding_scheme<=6) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_16, sum(case when (coding_scheme>=7 and coding_scheme<=9) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_79, sum(case when (coding_scheme>=11 and coding_scheme<=12) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_1112, sum(case when (coding_scheme>=1 and coding_scheme<=6) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_16, 0.5*sum(case when (coding_scheme>=7 and coding_scheme<=9) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_79, sum(case when (coding_scheme>=11 and coding_scheme<=12) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_1112 from ( select w.setname ws, leg.la_co_gid ws_gid from w_manual_sets w, utp_legacy leg where w.int_id = leg.la_int_id ) g , utp_common_objects plmn, utp_common_objects bsc, utp_common_objects bcf, utp_common_objects bts, rbs_ps_codingsc_cs1_hour p where g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and
SUM(DECODE(CODING_SCHEME, 2, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_2, SUM(DECODE(CODING_SCHEME, 3, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_3, SUM(DECODE(CODING_SCHEME, 4, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_4, SUM(DECODE(CODING_SCHEME, 5, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_5, SUM(DECODE(CODING_SCHEME, 6, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_6, SUM(DECODE(CODING_SCHEME, 7, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_7, SUM(DECODE(CODING_SCHEME, 8, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_8, SUM(DECODE(CODING_SCHEME, 9, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_9, SUM(DECODE(CODING_SCHEME, 11, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_11, SUM(DECODE(CODING_SCHEME, 12, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_12, SUM(DECODE(CODING_SCHEME, 1, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_1, SUM(DECODE(CODING_SCHEME, 2, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_2, SUM(DECODE(CODING_SCHEME, 3, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_3, SUM(DECODE(CODING_SCHEME, 4, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_4, SUM(DECODE(CODING_SCHEME, 5, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_5, SUM(DECODE(CODING_SCHEME, 6, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_6, SUM(DECODE(CODING_SCHEME, 7, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_7, SUM(DECODE(CODING_SCHEME, 8, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_8, SUM(DECODE(CODING_SCHEME, 9, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_9, SUM(DECODE(CODING_SCHEME, 11, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_11, SUM(DECODE(CODING_SCHEME, 12, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_12, sum(case when (coding_scheme>=1 and coding_scheme<=6) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_16, sum(case when (coding_scheme>=7 and coding_scheme<=9) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_79, sum(case when (coding_scheme>=11 and coding_scheme<=12) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_1112, sum(case when (coding_scheme>=1 and coding_scheme<=6) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_16, 0.5*sum(case when (coding_scheme>=7 and coding_scheme<=9) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_79, sum(case when (coding_scheme>=11 and coding_scheme<=12) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_1112
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and period_start_time >= to_date('2015/12/31 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and period_start_time < to_date('2016/01/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss') and bsc.co_oc_id=3 and plmn.co_oc_id=16 and plmn.co_gid = bsc.co_parent_gid and p.bsc_gid = bsc.co_gid and bsc.co_gid = bcf.co_parent_gid and bcf.co_gid = bts.co_parent_gid and
SUM(DECODE(CODING_SCHEME, 2, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_2, SUM(DECODE(CODING_SCHEME, 3, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_3, SUM(DECODE(CODING_SCHEME, 4, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_4, SUM(DECODE(CODING_SCHEME, 5, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_5, SUM(DECODE(CODING_SCHEME, 6, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_6, SUM(DECODE(CODING_SCHEME, 7, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_7, SUM(DECODE(CODING_SCHEME, 8, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_8, SUM(DECODE(CODING_SCHEME, 9, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_9, SUM(DECODE(CODING_SCHEME, 11, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_11, SUM(DECODE(CODING_SCHEME, 12, UL_RLC_BLOCKS_IN_UNACK_MODE, 0)) UL_RLC_BLOCKS_IN_UNACK_MODE_12, SUM(DECODE(CODING_SCHEME, 1, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_1, SUM(DECODE(CODING_SCHEME, 2, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_2, SUM(DECODE(CODING_SCHEME, 3, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_3, SUM(DECODE(CODING_SCHEME, 4, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_4, SUM(DECODE(CODING_SCHEME, 5, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_5, SUM(DECODE(CODING_SCHEME, 6, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_6, SUM(DECODE(CODING_SCHEME, 7, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_7, SUM(DECODE(CODING_SCHEME, 8, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_8, SUM(DECODE(CODING_SCHEME, 9, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_9, SUM(DECODE(CODING_SCHEME, 11, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_11, SUM(DECODE(CODING_SCHEME, 12, DL_RLC_BLOCKS_IN_UNACK_MODE, 0)) DL_RLC_BLOCKS_IN_UNACK_MODE_12, sum(case when (coding_scheme>=1 and coding_scheme<=6) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_16, sum(case when (coding_scheme>=7 and coding_scheme<=9) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_79, sum(case when (coding_scheme>=11 and coding_scheme<=12) then (ul_rlc_blocks_in_ack_mode+ul_rlc_blocks_in_unack_mode) else 0 end) trf_237b_ul_x_1112, sum(case when (coding_scheme>=1 and coding_scheme<=6) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_16, 0.5*sum(case when (coding_scheme>=7 and coding_scheme<=9) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_79, sum(case when (coding_scheme>=11 and coding_scheme<=12) then (+dl_rlc_blocks_in_ack_mode+retrans_rlc_data_blocks_dl+dl_rlc_blocks_in_unack_mode) else 0 end) trf_237b_dl_edge_1112
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
g.ws_gid = bcf.co_gid and g.ws in ( '2GSANJI_JEMB_01_01','2GSANJI_JEMB_02_01','2GSANJI_JEMB_03_01','2GSANJI_MAD1_01_01','2GSANJI_MAD1_02_01','2GSANJI_MAD1_02_02','2GSANJI_MDR1_01_01','2GSANJI_MDR2_02_01','2GSANJI_MLG_01_01','2GSANJI_SBY1_01_01','2GSANJI_SBY1_03_01','2GSANJI_SBY3_04_01_2','2GSANJI_SBY3_04_01_3','2GSANJI_SBY4_02_01','2GSANJI_SBY5_02_01','2GSANJI_SBY5_02_02','2GSANJI_SBY6_02_01','2GSANJI_SBY6_05_01' ) and
p.bts_gid = bts.co_gid and bts.co_oc_id=4 and bcf.co_oc_id=27 group by trunc( p.period_start_time, 'hh24' ), g.ws
select p.*,rank() over (partition by trunc( p.period_start_time, 'dd' ) , ws order by to_number("trf_24c" ) desc nulls last, period_start_time asc) ranking
and ALLTABLES.period_start_time = codingsc.period_start_time (+) and ALLTABLES.ws = codingsc.ws (+) and ALLTABLES.period_start_time = ho.period_start_time (+) and ALLTABLES.ws = ho.ws (+) and ALLTABLES.period_start_time = pcu.period_start_time (+) and ALLTABLES.ws = pcu.ws (+) and ALLTABLES.period_start_time = pcu_ext2.period_start_time (+) and ALLTABLES.ws = pcu_ext2.ws (+)
to_number(case when (decode(pcu.period_duration,0,0,(pcu.trf_237b_ul_gprs+(pcu.ignor_rlc_data_bl_ul_due_bsn*decode(codingsc.trf_237b_ul_x_79+codingsc.trf_237b_ul_x_16+codingsc.trf_237b_ul_x_1112+pcu.trf_237b_ul_x,0,0,((0.5*codingsc.trf_237b_ul_x_79)+codingsc.trf_237b_ul_x_16+codingsc.trf_237b_ul_x_1112+pcu.trf_237b_ul_x)/(codingsc.trf_237b_ul_x_79+codingsc.trf_237b_ul_x_16+codingsc.trf_237b_ul_x_1112+pcu.trf_237b_ul_x)))+codingsc.trf_237b_dl_edge_16+codingsc.trf_237b_dl_edge_79+codingsc.trf_237b_dl_edge_1112)/(pcu.period_duration*60.50))>=decode(pcu.period_duration,0,0,(pcu.trf_237b_dl_gprs+codingsc.trf_237b_dl_edge_16+codingsc.trf_237b_dl_edge_79+codingsc.trf_237b_dl_edge_1112)/(pcu.period_duration*60.50))) then (decode(pcu.period_duration,0,0,(pcu.trf_237b_ul_gprs+(pcu.ignor_rlc_data_bl_ul_due_bsn*decode(codingsc.trf_237b_ul_x_79+codingsc.trf_237b_ul_x_16+codingsc.trf_237b_ul_x_1112+pcu.trf_237b_ul_x,0,0,((0.5*codingsc.trf_237b_ul_x_79)+codingsc.trf_237b_ul_x_16+codingsc.trf_237b_ul_x_1112+pcu.tr...
and ALLTABLES.period_start_time = resacc.period_start_time (+) and ALLTABLES.ws = resacc.ws (+) and ALLTABLES.period_start_time = resacc_ext2.period_start_time (+) and ALLTABLES.ws = resacc_ext2.ws (+) and ALLTABLES.period_start_time = resavail.period_start_time (+) and ALLTABLES.ws = resavail.ws (+) and ALLTABLES.period_start_time = resavail_ext.period_start_time (+) and ALLTABLES.ws = resavail_ext.ws (+) and ALLTABLES.period_start_time = service.period_start_time (+) and ALLTABLES.ws = service.ws (+) and ALLTABLES.period_start_time = traffic.period_start_time (+) and ALLTABLES.ws = traffic.ws (+)
order by 1,2,3 ) p ) where ranking = 1
and ALLTABLES.period_start_time = resacc.period_start_time (+) and ALLTABLES.ws = resacc.ws (+) and ALLTABLES.period_start_time = resacc_ext2.period_start_time (+) and ALLTABLES.ws = resacc_ext2.ws (+) and ALLTABLES.period_start_time = resavail.period_start_time (+) and ALLTABLES.ws = resavail.ws (+) and ALLTABLES.period_start_time = resavail_ext.period_start_time (+) and ALLTABLES.ws = resavail_ext.ws (+) and ALLTABLES.period_start_time = service.period_start_time (+) and ALLTABLES.ws = service.ws (+) and ALLTABLES.period_start_time = traffic.period_start_time (+) and ALLTABLES.ws = traffic.ws (+)