svn path=/Customer/trunk/; revision=12871
This commit is contained in:
17
CAPG/Once/capg450to460.sql
Normal file
17
CAPG/Once/capg450to460.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
SPOOL xcapg450to460.lst
|
||||
|
||||
delete prs_afdeling where prs_afdeling_key in (1020, 1042, 1043, 227, 1044);
|
||||
|
||||
UPDATE prs_kostenplaats kp
|
||||
SET prs_kostenplaats_omschrijving =
|
||||
(SELECT SUBSTR (a.prs_afdeling_naam, 1, 1)
|
||||
|| ' - '
|
||||
|| prs_afdeling_omschrijving
|
||||
FROM prs_afdeling a
|
||||
WHERE a.prs_kostenplaats_key = kp.prs_kostenplaats_key
|
||||
AND a.prs_afdeling_verwijder IS NULL
|
||||
AND kp.prs_kostenplaats_verwijder IS NULL);
|
||||
|
||||
COMMIT;
|
||||
|
||||
SPOOL OFF
|
||||
@@ -904,5 +904,6 @@ UNION
|
||||
GROUP BY FCLT_F_Maand, FCLT_F_SECTOR
|
||||
ORDER BY 1,2,3;
|
||||
|
||||
COMMIT;
|
||||
|
||||
SPOOL OFF
|
||||
|
||||
Reference in New Issue
Block a user