Files
Customer/onces/WEHK/wehk_update_fac_ggroep.sql
Peter Koerhuis 3b8d7f1dcc Migratie once-scripts van /branch naar /onces
svn path=/Customer/; revision=21207
2014-04-02 13:57:31 +00:00

21 lines
535 B
SQL

-- Customer specific once-script to update fac_gebruikersgroep by moving all persons
-- now in group 'Frontend' to group 'Algemeen'.
-- (c) 2009 SG|facilitor bv
-- $Revision$
-- $Id$
--
-- Support: +31 53 4800700
SET ECHO ON;
SPOOL xwehk_update_fac_ggroep.lst;
UPDATE fac_gebruikersgroep g
SET fac_groep_key = 1
WHERE fac_groep_key = 101
AND g.prs_perslid_key NOT IN (SELECT g.prs_perslid_key
FROM fac_gebruikersgroep g
WHERE g.fac_groep_key = 1);
COMMIT;
SPOOL OFF;
@wehk.sql