KFSG#51454 qr rapportje verbetering
svn path=/Customer/trunk/; revision=36751
This commit is contained in:
@@ -319,32 +319,35 @@ CREATE OR REPLACE VIEW kfsg_v_resruimte_qrc
|
||||
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%';
|
||||
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,
|
||||
fac_bookmark bk,
|
||||
(SELECT rag.res_ruimte_key,
|
||||
alg_district_omschrijving,
|
||||
alg_locatie_omschrijving,
|
||||
alg_gebouw_omschrijving
|
||||
FROM res_alg_ruimte rag,
|
||||
alg_v_onroerendgoed aor,
|
||||
alg_gebouw g,
|
||||
alg_locatie l,
|
||||
alg_district d
|
||||
WHERE rag.alg_ruimte_key = aor.alg_onroerendgoed_keys
|
||||
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) res_alg
|
||||
WHERE res_ruimte_verwijder IS NULL
|
||||
AND rd.ins_discipline_key = rr.res_discipline_key
|
||||
AND rr.res_ruimte_key = res_alg.res_ruimte_key(+)
|
||||
AND bk.fac_bookmark_naam LIKE '%QRC_RES_RUIMTE%';
|
||||
|
||||
------ payload end ------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user