Files
Customer/CONN/Once/conn#19119.sql
Arthur Egberink 253d159db1 CONN#19119
svn path=/Customer/trunk/; revision=14483
2010-11-11 15:07:42 +00:00

28 lines
706 B
SQL

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