MNNL#64246 Rap/Personen in autorisatiegroepen
svn path=/Customer/trunk/; revision=48396
This commit is contained in:
@@ -6331,6 +6331,30 @@ AS
|
||||
a.prs_afdeling_naam,
|
||||
a.prs_afdeling_omschrijving;
|
||||
|
||||
-- MNNL#64264: Personen per autorisatiegroep.
|
||||
CREATE OR REPLACE VIEW mnnl_v_udr_prs_per_groep
|
||||
(
|
||||
groep_key,
|
||||
groep_oms,
|
||||
perslid_key,
|
||||
naam_full,
|
||||
naam_friendly,
|
||||
loginnaam,
|
||||
afd_code,
|
||||
afd_oms
|
||||
)
|
||||
AS
|
||||
SELECT g.fac_groep_key, g.fac_groep_omschrijving,
|
||||
p.prs_perslid_key, pf.prs_perslid_naam_full, pf.prs_perslid_naam_friendly,
|
||||
COALESCE (p.prs_perslid_oslogin, p.prs_perslid_oslogin2),
|
||||
a.prs_afdeling_naam, a.prs_afdeling_omschrijving
|
||||
FROM fac_groep g, fac_gebruikersgroep gg, prs_perslid p, prs_afdeling a, prs_v_perslid_fullnames pf
|
||||
WHERE g.fac_groep_key = gg.fac_groep_key
|
||||
AND gg.prs_perslid_key = p.prs_perslid_key
|
||||
AND p.prs_afdeling_key = a.prs_afdeling_key
|
||||
AND a.prs_afdeling_verwijder IS NULL
|
||||
AND p.prs_perslid_key = pf.prs_perslid_key;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user