KW1C#81204 implementatie FMIS (gebouwbeheer) KW1C --> bijwerken ruimtenummers OVC
svn path=/Customer/; revision=64681
This commit is contained in:
55
onces/KW1C/KW1C#81204_3.sql
Normal file
55
onces/KW1C/KW1C#81204_3.sql
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
--
|
||||||
|
-- $Id$
|
||||||
|
--
|
||||||
|
-- Ruimtenummers locaties CB, CJ , E, OE, ON, VM, VN omzetten naar kleine letters
|
||||||
|
-- In verband met matching op nummers in Graphics
|
||||||
|
--
|
||||||
|
|
||||||
|
DEFINE thisfile = 'KW1C#81204_3SQL'
|
||||||
|
DEFINE dbuser = '^KW1C'
|
||||||
|
|
||||||
|
SET ECHO ON
|
||||||
|
SET DEFINE ON
|
||||||
|
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
|
||||||
|
COLUMN fcltcusterr NEW_VALUE fcltcusterr NOPRINT;
|
||||||
|
WHENEVER SQLERROR CONTINUE;
|
||||||
|
SELECT adm.getscriptspoolfile('&thisfile') AS fcltlogfile FROM DUAL;
|
||||||
|
SPOOL &fcltlogfile
|
||||||
|
WHENEVER SQLERROR EXIT;
|
||||||
|
SELECT adm.checkscriptcust('&dbuser') AS fcltcusterr FROM DUAL;
|
||||||
|
WHENEVER SQLERROR CONTINUE;
|
||||||
|
PROMPT &fcltcusterr
|
||||||
|
SET DEFINE OFF
|
||||||
|
|
||||||
|
------ payload begin ------
|
||||||
|
|
||||||
|
UPDATE alg_ruimte r
|
||||||
|
SET alg_ruimte_nr = LOWER (alg_ruimte_nr)
|
||||||
|
WHERE r.alg_ruimte_key IN (SELECT r.alg_ruimte_key
|
||||||
|
FROM alg_ruimte r,
|
||||||
|
alg_verdieping v,
|
||||||
|
alg_gebouw g,
|
||||||
|
alg_locatie l
|
||||||
|
WHERE r.alg_verdieping_key = v.alg_verdieping_key
|
||||||
|
AND v.alg_gebouw_key = g.alg_gebouw_key
|
||||||
|
AND g.alg_locatie_key = l.alg_locatie_key
|
||||||
|
AND l.alg_locatie_code IN ('CB',
|
||||||
|
'CJ',
|
||||||
|
'OE',
|
||||||
|
'ON',
|
||||||
|
'VM',
|
||||||
|
'VN'));
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
------ payload end ------
|
||||||
|
|
||||||
|
SET DEFINE OFF
|
||||||
|
BEGIN adm.systrackscriptId ('$Id$', 1); END;
|
||||||
|
/
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
SET ECHO OFF
|
||||||
|
SPOOL OFF
|
||||||
|
SET DEFINE ON
|
||||||
|
PROMPT Logfile of this upgrade is: &fcltlogfile
|
||||||
Reference in New Issue
Block a user