Sie sind auf Seite 1von 6

SELECT "time",MSG_VALUE('eventID',

RIGHT(MSG_RRC("the_measured_syst
em", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_da
ta"),
LENGTH(MSG_RRC("the_meas
ured_system", "the_measured_band", -1, "direction", "sub_channel", "rrc_message"
, "rrc_data")) LOCATE('start from the b
eginning',
MSG_RRC("the_measured_sy
stem", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_
data"),0)
)
) AS 'eventID',
MSG_VALUE('primaryScramblingCode
',
RIGHT(MSG_RRC("the_measured_syst
em", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_da
ta"),
LENGTH(MSG_RRC("the_meas
ured_system", "the_measured_band", -1, "direction", "sub_channel", "rrc_message"
, "rrc_data")) DECODE(LOCATE('fdd value
1',
MSG_RRC("the_measured_sy
stem", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_
data"),0), 0,LENGTH(MSG_RRC("the_measured_system", "the_measured_band", -1, "dir
ection", "sub_channel", "rrc_message", "rrc_data")), LOCATE('fdd value 1',
MSG_RRC("the_measured_sy
stem", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_
data"),0))
)
) AS 'SC1',
MSG_VALUE('primaryScramblingCode
',
RIGHT(MSG_RRC("the_measured_syst
em", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_da
ta"),
LENGTH(MSG_RRC("the_meas
ured_system", "the_measured_band", -1, "direction", "sub_channel", "rrc_message"
, "rrc_data")) DECODE(LOCATE('fdd value
2',
MSG_RRC("the_measured_sy
stem", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_
data"),0), 0,LENGTH(MSG_RRC("the_measured_system", "the_measured_band", -1, "dir
ection", "sub_channel", "rrc_message", "rrc_data")), LOCATE('fdd value 2',
MSG_RRC("the_measured_sy
stem", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_
data"),0))
)
) AS 'SC2',
"gps_latitude","gps_longitude" F
ROM "Nemo.UMTS"."RRCS+" WHERE ( 'MEASUREMENT_REPORT' = '' OR rrc_message = 'MEAS
UREMENT_REPORT') AND MSG_VALUE('eventID', MSG_RRC("the_measured_system", "the_me
asured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_data")) IS NOT
NULL
SELECT "time",MSG_VALUE('primaryScramblingCode',

RIGHT(MSG_RRC("the_measured_syst
em", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_da
ta"),
LENGTH(MSG_RRC("the_meas
ured_system", "the_measured_band", -1, "direction", "sub_channel", "rrc_message"
, "rrc_data")) DECODE(LOCATE('fdd value
2',
MSG_RRC("the_measured_sy
stem", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_
data"),0), 0,LENGTH(MSG_RRC("the_measured_system", "the_measured_band", -1, "dir
ection", "sub_channel", "rrc_message", "rrc_data")), LOCATE('fdd value 2',
MSG_RRC("the_measured_sy
stem", "the_measured_band", -1, "direction", "sub_channel", "rrc_message", "rrc_
data"),0))
)
) AS 'primaryScramblingCode',"gp
s_latitude","gps_longitude" FROM "Nemo.UMTS"."RRCS+" x, "Nemo.UMTS"."RRCS+" y WH
ERE ( 'MEASUREMENT_REPORT' = '' OR rrc_message = 'MEASUREMENT_REPORT') AND MSG_V
ALUE('primaryScramblingCode', MSG_RRC("the_measured_system", "the_measured_band"
, -1, "direction", "sub_channel", "rrc_message", "rrc_data")) IS NOT NULL

Need to correlate to tables


SELECT "time","rx_level_sub","arfcn","bsic","c1","c2","lac","rac","gps_longitud
e","gps_latitude",OID_SHORT("the_event") AS "the_event" FROM "Nemo.GSM"."RXL+" x
WHERE "server"=1 /* "MEAS(16Mar08 225506:4)" */
SELECT "time","rx_quality_sub","gps_longitude","gps_latitude" FROM "Nemo.GSM"."
RXQ+" x /* "MEAS(16Mar08 225506:4)" */
/*OPTIONS(USE_TIME_SCOPE)*/

SELECT VAL_to_STRING('extended_channel_type',extended_channel_type) AS Codec,AV


G(x.aq_mean_dl) AS "Avg MOS DL",MIN(x.aq_mean_dl) AS "Min MOS DL",MAX(x.aq_mean_
dl) AS "Max MOS DL",COUNT(x.aq_mean_dl) AS "Number of samples" FROM "Nemo.GSM"."
CHI+" a, "Nemo.NicaDspLq"."AQDL+" x
WHERE x.time = a.time AND extend
ed_channel_type NOT IN (2, 26, 27) AND aq_mean_dl IS NOT NULL AND x.the_device =

a.the_device
GROUP BY extended_channel_type
/* OPTIONS(USE_TIME_SCOPE) */
UNION ALL
SELECT VAL_to_STRING('extended_c
hannel_type',extended_channel_type)extended_channel_type,AVG(x.aq_mean_dl), MIN(
x.aq_mean_dl), MAX(x.aq_mean_dl), COUNT(x.aq_mean_dl)
FROM "Nemo.GSM"."CHI+" a, "Nemo"
."AQDL+" x
WHERE x.time = a.time AND extend
ed_channel_type NOT IN (2, 26, 27) AND aq_mean_dl IS NOT NULL AND x.the_device =
a.the_device
GROUP BY extended_channel_type
/* OPTIONS(USE_TIME_SCOPE) */
UNION ALL
SELECT DECODE(extended_channel_t
ype, 26, 'AMR full-rate', 27, 'AMR half-rate') || ' ' ||
VAL_to_STRING('amr_mode_downlink
', amr_mode_downlink) amr_mode_downlink, AVG(x.aq_mean_dl), MIN(x.aq_mean_dl), M
AX(x.aq_mean_dl), COUNT(x.aq_mean_dl)
FROM "Nemo.GSM"."CHI+" a, "Nemo.
GSM"."AMRS+" b, "Nemo.NicaDspLq"."AQDL+" x
WHERE x.time = a.time AND x.time
= b.time AND aq_mean_dl IS NOT NULL AND extended_channel_type IN (26, 27) AND
amr_mode_downlink NOT IN (6, 7) AND x.the_device = a.the_device AND x.the_device
= b.the_device
GROUP BY amr_mode_downlink, exte
nded_channel_type
/* OPTIONS(USE_TIME_SCOPE) */
UNION ALL
SELECT DECODE(extended_channel_t
ype, 26, 'AMR full-rate', 27, 'AMR half-rate') || ' ' ||
VAL_to_STRING('amr_mode_downlink
', amr_mode_downlink) amr_mode_downlink, AVG(x.aq_mean_dl), MIN(x.aq_mean_dl), M
AX(x.aq_mean_dl), COUNT(x.aq_mean_dl)
FROM "Nemo.GSM"."CHI+" a, "Nemo.
GSM"."AMRS+" b, "Nemo"."AQDL+" x
WHERE x.time = a.time AND x.time
= b.time AND extended_channel_type IN (26, 27) AND amr_mode_downlink NOT IN (
6, 7) AND aq_mean_dl IS NOT NULL AND x.the_device = a.the_device AND x.the_devic
e = b.the_device
GROUP BY amr_mode_downlink, exte
nded_channel_type
UNION ALL
SELECT 'AMR full-rate '||
VAL_to_STRING('amr_mode_downlink
', amr_mode_downlink) amr_mode_downlink, AVG(x.aq_mean_dl), MIN(x.aq_mean_dl), M
AX(x.aq_mean_dl), COUNT(x.aq_mean_dl)
FROM "Nemo.GSM"."AMRS+" b, "Nemo
.NicaDspLq"."AQDL+" x
WHERE x.time = b.time AND aq_me
an_dl IS NOT NULL AND amr_mode_downlink IN (6, 7) AND x.the_device = b.the_dev
ice
GROUP BY amr_mode_downlink
/* OPTIONS(USE_TIME_SCOPE) */
UNION ALL
SELECT 'AMR full-rate '||
VAL_to_STRING('amr_mode_downlink
', amr_mode_downlink) amr_mode_downlink, AVG (x.aq_mean_dl), MIN(x.aq_mean_dl),
MAX(x.aq_mean_dl), COUNT (x.aq_mean_dl)

FROM "Nemo.GSM"."AMRS+" b, "Nem


o"."AQDL+" x
WHERE x.time = b.time AND amr_m
ode_downlink IN (6, 7) AND aq_mean_dl IS NOT NULL AND x.the_device = b.the_devi
ce
GROUP BY amr_mode_downlink
/* OPTIONS(USE_TIME_SCOPE) */

SELECT VAL_to_STRING('extended_channel_type',extended_channel_type) AS Codec FRO


M "Nemo.GSM"."CHI+", COUNT("*") GROUP BY Codec
SELECT DISTINCT "scrambling_code" AS "1st active SCR" FROM "Nemo.UMTS.ECNO"."Cel
l+" x WHERE "cell_type" = 0 AND "order" = 1
SELECT DISTINCT "lac" FROM "Nemo.GSM"."CHI+"

SELECT "lac" FROM "Nemo.GSM"."CHI+")

SELECT DISTINCT mnc FROM (SELECT "mnc" FROM "Nemo"."LUS+" WHERE mnc IS NOT NULL
UNION SELECT "mnc"FROM "Nemo"."SEI+" x WHERE mnc IS NOT NULL)

SELECT "event_id","the_serving_system","the_serving_band","direction","time","s
ub_channel","rrc_message" AS "Message name","rrc_data" AS "Data" FROM "Nemo.UMTS
"."RRCS+" WHERE LOCATE('CELL_UPDATE',rrc_message,0) <> 0 AND ("direction" = 1 )

Signalling L3 UL & DL separated


SELECT "event_id","the_measured_system","time",0 AS "p_rev","sub_channel",CASE
WHEN direction=1 THEN [rlc/mac_message] ELSE '' END AS [UL Message],CASE WHEN di
rection=2 THEN [rlc/mac_message] ELSE '' END AS [DL Message],"rlc/mac_data" AS "
Data","gsm_signaling_message_type","sql_time" AS "_exclude_order","rlc/mac_messa
ge" AS "Message name" FROM "Nemo.GSM"."MAC+"
UNION ALL SELECT "event_id",
"the_measured_system", "time", "p_rev", "sub_channel/channel_type",CASE WHEN di
rection=1 THEN [layer3_message] ELSE '' END AS [UL Message], CASE WHEN direction
=2 THEN [layer3_message] ELSE '' END AS [DL Message], "layer3_data", CAST(NULL A
S TINYINT), "sql_time" AS "_exclude_order",layer3_message FROM "Nemo"."L3+"
UNION ALL SELECT "event_id",
"the_measured_system", "time", 0 AS "p_rev", "sub_channel",CASE WHEN direction
=1 THEN [rrc_message] ELSE '' END AS [UL Message], CASE WHEN direction=2 THEN [r
rc_message] ELSE '' END AS [DL Message], "rrc_data", CAST(NULL AS TINYINT), "sql
_time" AS "_exclude_order", rrc_message FROM "Nemo.UMTS"."RRCS+"
UNION ALL SELECT "event_id",
"the_measured_system", "time", 0 AS "p_rev", "lte_rrc_subchannel",CASE WHEN dir
ection=1 THEN [rrc_message] ELSE '' END AS [UL Message], CASE WHEN direction=2 T

HEN [rrc_message] ELSE '' END AS [DL Message], "rrc_data", CAST(NULL AS TINYINT)
, "sql_time" AS "_exclude_order", rrc_message FROM "Nemo.LTE"."RRCS+"
ORDER BY "_exclude_order"

"Nemo"."BTS_QUEST"('16Mar14 203128:1', 'NBF_2G_1800.nbf', 2, 54, 1) /* "MEAS(16M


ar14 203128:1)" */

Correlate Parameters
CORRELATE LEFT_OUTER {CURR COLUMN(rx_level_sub) SELECT "time","rx_level_sub","a
rfcn","bsic","lac","gps_longitude","gps_latitude",OID_SHORT("the_event") AS "the
_event" FROM "Nemo.GSM"."RXL+" x WHERE "server"=1 {!correlate_hint}} {CURR COLU
MN(rx_quality_sub) SELECT "time","rx_quality_sub","gps_longitude","gps_latitude
" FROM "Nemo.GSM"."RXQ+" x {!correlate_hint}} {CURR SELECT "cell_identificatio
n","time","sql_time" AS "_exclude_order",TI_INTERVAL("time") AS "_exclude_order_
2","gps_longitude","gps_latitude" FROM "Nemo.GSM"."CHI+" a UNION ALL SELECT IFN
ULL(cell_identification, INTEGER_BTS_LOOKUP_2(1, gps_longitude, gps_latitude, th
e_serving_system, 'cell_identification', 1, time, 'channel_number', current_chan
nel_number, 'scrambling_code', current_scrambling_code, 'cell_identification', N
ULL, 'bsic', NULL, 'pilot_number', NULL)) "cell_identification","time","sql_time
" AS "_exclude_order",TI_INTERVAL("time") AS "_exclude_order_2","gps_longitude",
"gps_latitude" FROM "Nemo.UMTS"."CHI+" UNION ALL SELECT "cell_identification","
time","sql_time" AS "_exclude_order",TI_INTERVAL("time") AS "_exclude_order_2","
gps_longitude","gps_latitude" FROM "Nemo.GAN"."CHI+" a UNION ALL SELECT "cell_i
dentification","time","sql_time" AS "_exclude_order",TI_INTERVAL("time") AS "_ex
clude_order_2","gps_longitude","gps_latitude" FROM "Nemo.TD-SCDMA"."CHI+" a ORD
ER BY "_exclude_order", "_exclude_order_2" /*BTS()*/ {!correlate_hint}} {CURR CO
LUMN(aq_mean_dl) SELECT T_TI_2_T(aq_timestamp_dl,-audio_sample_duration_dl) AS
time,"aq_mean_dl","gps_longitude","gps_latitude" FROM "Nemo"."AQDL+" {!correlat
e_hint}}

SELECT "time","cell_identification","sql_time" AS "_exclude_order",TI_INTERVAL(


"time") AS "_exclude_order_2","gps_longitude","gps_latitude" FROM "Nemo.GSM"."CH
I+" a UNION ALL SELECT "time",IFNULL(cell_identification, INTEGER_BTS_LOOKUP_2
(1, gps_longitude, gps_latitude, the_serving_system, 'cell_identification', 1, t
ime, 'channel_number', current_channel_number, 'scrambling_code', current_scramb
ling_code, 'cell_identification', NULL, 'bsic', NULL, 'pilot_number', NULL)) "ce
ll_identification","sql_time" AS "_exclude_order",TI_INTERVAL("time") AS "_exclu
de_order_2","gps_longitude","gps_latitude" FROM "Nemo.UMTS"."CHI+" /*BTS()*/

SELECT "cell_identification","time","sql_time" AS "_exclude_order",TI_INTERVAL(


"time") AS "_exclude_order_2","gps_longitude","gps_latitude" FROM "Nemo.GSM"."CH
I+" a UNION ALL SELECT IFNULL(cell_identification, INTEGER_BTS_LOOKUP_2(1, gps_
longitude, gps_latitude, the_serving_system, 'cell_identification', 1, time, 'ch
annel_number', current_channel_number, 'scrambling_code', current_scrambling_cod
e, 'cell_identification', NULL, 'bsic', NULL, 'pilot_number', NULL)) "cell_ident
ification","time","sql_time" AS "_exclude_order",TI_INTERVAL("time") AS "_exclud
e_order_2","gps_longitude","gps_latitude" FROM "Nemo.UMTS"."CHI+" UNION ALL SEL
ECT "cell_identification","time","sql_time" AS "_exclude_order",TI_INTERVAL("tim
e") AS "_exclude_order_2","gps_longitude","gps_latitude" FROM "Nemo.GAN"."CHI+"

a UNION ALL SELECT "cell_identification","time","sql_time" AS "_exclude_order",


TI_INTERVAL("time") AS "_exclude_order_2","gps_longitude","gps_latitude" FROM "N
emo.TD-SCDMA"."CHI+" a ORDER BY "_exclude_order", "_exclude_order_2" /*BTS()*/
/* "MEAS(16Mar14 203128:4|16Mar15 142526:4|16Mar15 181000:4)" */

Das könnte Ihnen auch gefallen