SUTF#86173 View voor rapportage QRC
svn path=/Customer/trunk/; revision=67214
This commit is contained in:
1776
SUTF/sutf - bu tbv rob.sql
Normal file
1776
SUTF/sutf - bu tbv rob.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1701,6 +1701,71 @@ AS
|
|||||||
groep,
|
groep,
|
||||||
soort);
|
soort);
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW SUTF_V_INS_QRC
|
||||||
|
(
|
||||||
|
HIDE_F_SORT,
|
||||||
|
FCLT_F_BOOKMARK,
|
||||||
|
FCLT_3D_DISCIPLINE_KEY,
|
||||||
|
FCLT_3D_LOCATIE_KEY,
|
||||||
|
FCLT_F_LOCATIE,
|
||||||
|
FCLT_F_GEBOUW,
|
||||||
|
PLAATS,
|
||||||
|
FCLT_F_OBJECTSOORT,
|
||||||
|
FCLT_F_IDENTIFICATIE,
|
||||||
|
INS_DEEL_KEY,
|
||||||
|
SOORTRUIMTE,
|
||||||
|
INS_SRTDEEL_CODE,
|
||||||
|
INS_SRTDEEL_KEY,
|
||||||
|
INS_ALG_RUIMTE_TYPE,
|
||||||
|
ALG_GEBOUW_CODE,
|
||||||
|
ALG_VERDIEPING_CODE,
|
||||||
|
ALG_DISTRICT_KEY,
|
||||||
|
INS_ALG_RUIMTE_KEY,
|
||||||
|
HIDE_F_BOOKMARK_ID
|
||||||
|
)
|
||||||
|
|
||||||
|
AS
|
||||||
|
SELECT i.ins_deel_omschrijving hide_f_sort,
|
||||||
|
b.fac_bookmark_naam fclt_f_bookmark,
|
||||||
|
i.ins_discipline_key fclt_3d_discipline_key,
|
||||||
|
l.alg_locatie_key fclt_3d_locatie_key,
|
||||||
|
l.alg_locatie_omschrijving fclt_f_locatie,
|
||||||
|
o.alg_gebouw_omschrijving fclt_f_gebouw,
|
||||||
|
o.alg_plaatsaanduiding plaats,
|
||||||
|
s.ins_srtdeel_omschrijving fclt_f_objectsoort,
|
||||||
|
i.ins_deel_omschrijving fclt_f_identificatie,
|
||||||
|
i.ins_deel_key,
|
||||||
|
(SELECT r.alg_ruimte_omschrijving
|
||||||
|
FROM alg_ruimte r
|
||||||
|
WHERE r.alg_ruimte_key = i.ins_alg_ruimte_key) soortruimte,
|
||||||
|
s.ins_srtdeel_code,
|
||||||
|
s.ins_srtdeel_key,
|
||||||
|
i.ins_alg_ruimte_type,
|
||||||
|
o.alg_gebouw_code,
|
||||||
|
o.alg_verdieping_code,
|
||||||
|
l.alg_district_key,
|
||||||
|
i.ins_alg_ruimte_key,
|
||||||
|
b.fac_bookmark_id hide_f_bookmark_id
|
||||||
|
FROM ins_deel i,
|
||||||
|
ins_v_alg_overzicht o,
|
||||||
|
ins_srtdeel s,
|
||||||
|
alg_locatie l,
|
||||||
|
alg_district di,
|
||||||
|
fac_bookmark b
|
||||||
|
WHERE b.fac_bookmark_path IN
|
||||||
|
('appl/pda/ins_deel.asp', 'appl/ins/ins_deel.asp')
|
||||||
|
AND ins_deel_verwijder IS NULL
|
||||||
|
AND COALESCE (i.ins_deel_vervaldatum, SYSDATE + 1) > SYSDATE
|
||||||
|
AND i.ins_deel_module = 'INS'
|
||||||
|
AND i.ins_deel_parent_key IS NULL
|
||||||
|
AND o.alg_onroerendgoed_keys = i.ins_alg_ruimte_key
|
||||||
|
AND o.alg_onroerendgoed_type = i.ins_alg_ruimte_type
|
||||||
|
AND i.ins_alg_ruimte_type IN ('T', 'R', 'W')
|
||||||
|
AND o.alg_locatie_key = i.ins_alg_locatie_key
|
||||||
|
AND i.ins_alg_locatie_key = l.alg_locatie_key
|
||||||
|
AND l.alg_district_key = di.alg_district_key
|
||||||
|
AND s.ins_srtdeel_key = i.ins_srtdeel_key;
|
||||||
|
|
||||||
------ payload end ------
|
------ payload end ------
|
||||||
|
|
||||||
SET DEFINE OFF
|
SET DEFINE OFF
|
||||||
|
|||||||
Reference in New Issue
Block a user