Skip to content

Commit

Permalink
Fix / remove extra backslash in Nokia query(#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
muralithiyagarajan authored Mar 23, 2020
1 parent 9db4077 commit 1b8dd48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db/migrations/1571305538377_Add-Nokia-RAML-relations.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ t2.data->>'name' AS "SRV CELL NAME",
t1.data->>'name' AS "NBR CELL NAME"
FROM nokia_cm."ADJS" t1
INNER JOIN nokia_cm."WCEL" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME'
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\d+')
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\\d+')
UNION
---3G-2G Relations (Nokia RAML)
SELECT
Expand All @@ -257,7 +257,7 @@ t2.data->>'name' AS "SRV CELL NAME",
t1.data->>'name' AS "NBR CELL NAME"
FROM nokia_cm."ADJG" t1
INNER JOIN nokia_cm."WCEL" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME'
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\d+')
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*WCEL-\\d+')
UNION
---2G-3G Relations (Nokia RAML)
SELECT
Expand All @@ -272,7 +272,7 @@ t2.data->>'name' AS "SRV CELL NAME",
t1.data->>'name' AS "NBR CELL NAME"
FROM nokia_cm."ADJW" t1
INNER JOIN nokia_cm."BTS" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME'
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\d+')
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\\d+')
UNION
---2G-2G Relations (Nokia RAML)
SELECT
Expand All @@ -287,7 +287,7 @@ t2.data->>'name' AS "SRV CELL NAME",
t1.data->>'name' AS "NBR CELL NAME"
FROM nokia_cm."ADCE" t1
INNER JOIN nokia_cm."BTS" t2 ON t1.data->>'FILENAME'=t2.data->>'FILENAME'
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\d+')
AND t2.data->>'DISTNAME' = SUBSTRING(t1.data->>'DISTNAME', '.*BTS-\\d+')
`;


Expand Down

0 comments on commit 1b8dd48

Please sign in to comment.