KFSG#51454 rapport tbv qrc res_ruimte

svn path=/Customer/trunk/; revision=36554
This commit is contained in:
Ruud Lipper
2018-01-11 09:52:24 +00:00
parent f616dde2be
commit 378ce866b7

View File

@@ -306,6 +306,46 @@ AS
res_rsv_ruimte_key,
ruimte_key;
CREATE OR REPLACE VIEW kfsg_v_resruimte_qrc
(
district,
locatie,
gebouw,
catalogus,
ruimte_nr,
ruimte_omschrijving,
res_ruimte_key,
fac_bookmark_naam,
fac_bookmark_id
)
AS
SELECT DISTINCT alg_district_omschrijving,
alg_locatie_omschrijving,
alg_gebouw_omschrijving,
ins_discipline_omschrijving,
res_ruimte_nr,
res_ruimte_omschrijving,
rr.res_ruimte_key,
fac_bookmark_naam,
fac_bookmark_id
FROM res_ruimte rr,
res_discipline rd,
res_alg_ruimte rag,
alg_v_onroerendgoed aor,
alg_gebouw g,
alg_locatie l,
alg_district d,
fac_bookmark bk
WHERE res_ruimte_verwijder IS NULL
AND rd.ins_discipline_key = rr.res_discipline_key
AND rr.res_ruimte_key = rag.res_ruimte_key
AND rag.alg_ruimte_key = aor.alg_onroerendgoed_keys
AND rag.res_alg_ruimte_verwijder IS NULL
AND aor.alg_gebouw_key = g.alg_gebouw_key
AND g.alg_locatie_key = l.alg_locatie_key
AND l.alg_district_key = d.alg_district_key
AND bk.fac_bookmark_naam LIKE '%QRC_RES_RUIMTE%';
------ payload end ------
SET DEFINE OFF