MNNL#41252 CMDB-import/Inclusief objectrelaties

svn path=/Customer/trunk/; revision=36929
This commit is contained in:
Maarten van der Heide
2018-02-12 13:04:18 +00:00
parent acefb0651c
commit c5b44b2924

View File

@@ -1634,7 +1634,7 @@ SELECT 'Document Services' Naam,
'YYYY-IW'))
sub) dosges;
--MNNL#40849: Thema voor graphics / reserveren flexplekken
-- MNNL#40849: Thema voor graphics / reserveren flexplekken
CREATE OR REPLACE VIEW mnnl_v_thema_wp_sensor
(
ins_deel_key,
@@ -1642,18 +1642,17 @@ CREATE OR REPLACE VIEW mnnl_v_thema_wp_sensor
waarde
)
AS
SELECT ins_deel_key,
ins_alg_ruimte_key,
DECODE (res_rsv_deel_key, NULL, '01', '02')
SELECT d.ins_deel_key,
d.ins_alg_ruimte_key,
DECODE (rrd.res_rsv_deel_key, NULL, '01', '02')
FROM ins_deel d,
res_deel rd,
(SELECT res_rsv_deel_key, res_deel_key
FROM res_rsv_deel
WHERE SYSDATE BETWEEN res_rsv_deel_van AND res_rsv_deel_tot
AND res_rsv_deel_verwijder IS NULL) rrd
WHERE ins_srtdeel_key = 281
AND d.ins_deel_key = rd.res_ins_deel_key(+)
AND rd.res_deel_key = rrd.res_deel_key(+);
FROM res_v_aanwezigrsv_deel
WHERE SYSDATE BETWEEN res_rsv_deel_van AND res_rsv_deel_tot) rrd
WHERE d.ins_srtdeel_key = 281
AND d.ins_deel_key = rd.res_ins_deel_key(+)
AND rd.res_deel_key = rrd.res_deel_key(+);
-- MNNL#40905: CMDB-import (Applicatie/Server/Database)!