CONN#19119

svn path=/Customer/trunk/; revision=14483
This commit is contained in:
Arthur Egberink
2010-11-11 15:07:42 +00:00
parent c8b1751ab4
commit 253d159db1

27
CONN/Once/conn#19119.sql Normal file
View File

@@ -0,0 +1,27 @@
SET ECHO ON
SPOOL xconn19119.lst
PROMPT $Revision: 1 $
UPDATE res_rsv_deel
SET res_deel_key = 1
WHERE res_deel_key IN (62, 63, 82, 83, 161) AND res_status_bo_key < 6;
UPDATE res_rsv_deel
SET res_deel_key = 141
WHERE res_deel_key IN (142, 143) AND res_status_bo_key < 6;
DELETE res_alg_ruimte rar1
WHERE rar1.res_alg_ruimte_verwijder IS NOT NULL
AND EXISTS
(SELECT res_alg_ruimte_key
FROM res_alg_ruimte rar2
WHERE rar1.res_ruimte_key = rar2.res_ruimte_key
AND rar2.res_alg_ruimte_verwijder IS NULL);
BEGIN adm.systrackscript('$Workfile: conn#19119.sql $', '$Revision: 1 $', 1); END;
/
commit;
SPOOL OFF