AAFM#51884 -- Uitbreiding AAXX_V_DWH_PRS_BEDRIJFADRES view

svn path=/Customer/trunk/; revision=36603
This commit is contained in:
Arthur Egberink
2018-01-17 08:40:59 +00:00
parent 75edb82ce0
commit 1b13218ece

View File

@@ -5429,7 +5429,12 @@ CREATE OR REPLACE VIEW aaxx_v_dwh_prs_bedrijfadres
prs_bedrijfadres_certificate,
prs_bedrijfadres_xsl,
prs_fixed_attach,
prs_send_flex
prs_send_flex,
alg_district_omschrijving,
alg_locatie_code,
prs_perslid_naam,
prs_perslid_key,
prs_bedrijfadres_expire
)
AS
SELECT prs_bedrijf_key,
@@ -5467,9 +5472,17 @@ AS
'Ja',
'Nee'
)
prs_send_flex
FROM prs_bedrijfadres ba, mld_typeopdr t
WHERE t.mld_typeopdr_key(+) = ba.mld_typeopdr_key;
prs_send_flex,
d.alg_district_omschrijving,
l.alg_locatie_code,
pf.prs_perslid_naam_full,
pf.prs_perslid_key,
ba.prs_bedrijfadres_lockexpire
FROM prs_bedrijfadres ba, mld_typeopdr t, alg_locatie l, alg_district d, prs_v_perslid_fullnames_all pf
WHERE ba.mld_typeopdr_key = t.mld_typeopdr_key(+)
AND ba.alg_locatie_key = l.alg_locatie_key(+)
AND ba.alg_district_key = d.alg_district_key(+)
AND ba.prs_bedrijfadres_lockuser_key = prs_perslid_key(+);
-------------------------------------------------------------------------------
-- EXPORTFUNCTIE - DWH_PRS_AFDELING