/* Report Name: Ericsson ENODEB - QciProfilePredefined Information
Report Description: Ericsson ENODEB - QciProfilePredefined Information from
xml_QciProfilePredefined
Report tags: Ericsson, LTE, ENODEB, License, Information
Created by: BONA
Date: 23/08/2018
Platform: NetCM 3.0
Modified by: BONA
Date Modified: 23/08/2018
*/
select * from
(SELECT --ERICSSON LTE XML
split_part(split_part(a.cm_uid,'xml_MeContext_','2'),'->xml_','1') as "ENODEB",
string_agg(a."xmlId",' & ' order by a."xmlId") as "Cell_Names",
string_agg(a."administrativeState",' & ' order by a."xmlId") as "administrativeStates",
string_agg(distinct a."administrativeState",' & ') as "Distinct_administrativeStates"
--case when a."administrativeState" = '1' then 'T' else 'F' end as "Cell_State_IND"
FROM
"R_EL"."V_xml_EUtranCellFDD" a
WHERE
a."xmlId" is not null
group by 1
--and a."availabilityStatus" != '0'
order by 1,2) A
join
(SELECT split_part(split_part(a.cm_uid,'xml_MeContext_','2'),'->xml_','1') as "ENODEB",
a."xmlId", a."aqmMode", a."dataFwdPerQciEnabled", a."dlMaxWaitingTime", a."dlMinBitRate",
a."dlResourceAllocationStrategy", a."drxProfileRef", a."dscp",
a."pdb", a."pdbOffset", a."pdcpSNLength", a."priority", a."qci", a."qciACTuning",
a."qciSubscriptionQuanta", a."relativePriority", a."reservedBy",
a."resourceAllocationStrategy", a."resourceType", a."rlcMode", a."rlcSNLength", a."rlfPriority",
a."rlfProfileRef", a."rohcEnabled", a."schedulingAlgorithm", a."serviceType",
a."srsAllocationStrategy",
a."timerProfileRef", a."tReorderingUl", a."userLabel", a."xml_QciTable"
FROM "R_EL"."V_xml_QciProfilePredefined" a
) B on A."ENODEB" = B."ENODEB"
where
A."Distinct_administrativeStates" like '%1%'
order by 1
--limit 100