You are on page 1of 1

SELECT

//date(datetime_id) as Fecha,
//hour(datetime_id) as Hora,
DATE_ID as Fecha,
HOUR_ID as Hora,
//MIN_ID as ROP,
//MOID,
ERBS,substring(MOID, 54, charindex(',',substring(MOID,54,10))-1) as SectorCarrier,
//ManagedElement=MLA405,ENodeBFunction=1,SectorCarrier=1
//sum(pmActiveUeUlSumSectorCarrier) as pmActiveUeUlSumSectorCarrier,
//sum(pmZtemporary56) as pmZtemporary56,
//sum(pmBranchUsersLevSum) as pmBranchUsersLevSum,
//sum(pmActiveUeDlSumSectorCarrier) as pmActiveUeDlSumSectorCarrier,
sum(pmMicroTxSleepTime) as pmMicroTxSleepTime
//sum(pmActiveNbUeDlSumSectorCarrier) as pmActiveNbUeDlSumSectorCarrier,
//sum(pmActiveNbUeUlSumSectorCarrier) as pmActiveNbUeUlSumSectorCarrier

from
DC_E_ERBS_SECTORCARRIER_RAW

where
/*
ERBS in
(
'MLA405',
'MLA132',
'MLA927',
'MPM423',
'XLA190',
'MLA600',
'MLA212',
'MLA390',

'MAM464','MRS070','MZM343','MAM797'
)
*/

Fecha ='2019-07-23' //and Hora=05


//Fecha between '2019-05-24' and '2019-06-22'
Group by
Fecha,Hora
//,ROP
,ERBS,MOID

Having pmMicroTxSleepTime > 0

You might also like