BLCC#88791 Rap/Ruimten en leegstand per maand-gebouw-classificatie
svn path=/Customer/trunk/; revision=68887
This commit is contained in:
@@ -24232,6 +24232,39 @@ AS
|
||||
WHERE cnt_contract_nummer_intern = c.cnt_contract_nummer_intern
|
||||
AND fac.safe_to_number (cnt_contract_versie) > fac.safe_to_number (COALESCE (c.cnt_contract_versie, '0')));
|
||||
|
||||
-- BLCC#88791: Ruimten/oppervlakten per maand/gebouw!
|
||||
CREATE OR REPLACE VIEW BLCC_V_UDR_ALG_FREEZE
|
||||
AS
|
||||
SELECT TO_CHAR (freeze_datum, 'yyyy-mm') maand,
|
||||
gebouwclusternaam gebouwcluster,
|
||||
gebouwcode gebouw,
|
||||
gebouwfunctie,
|
||||
verdiepingcode,
|
||||
ruimtenummer,
|
||||
ruimtefunctie,
|
||||
lhkotc_class_code,
|
||||
lhkotc_class,
|
||||
vvo vvo_nen2580,
|
||||
vvo_overeenkomst
|
||||
FROM blcc_alg_freeze
|
||||
WHERE freeze_datum > TRUNC (ADD_MONTHS (SYSDATE, -12), 'yyyy');
|
||||
|
||||
-- BLCC#88791: Leegstand per maand/gebouw (blcc_v_rap_alg_leeg_freeze-kopie
|
||||
-- met numerieke oppervlakten)!
|
||||
CREATE OR REPLACE VIEW BLCC_V_UDR_ALG_LEEG_FREEZE
|
||||
AS
|
||||
SELECT leeg_maand maand,
|
||||
gebouwcluster,
|
||||
gebouwcode gebouw,
|
||||
ruimtenummer,
|
||||
ruimtefunctie,
|
||||
lhkotc_class_code,
|
||||
lhkotc_class,
|
||||
fac.safe_to_number (vvo_nen2580) vvo_nen2580,
|
||||
fac.safe_to_number (vvo_overeenkomst) vvo_overeenkomst
|
||||
FROM blcc_v_rap_alg_leeg_freeze
|
||||
WHERE freeze_datum > TRUNC (ADD_MONTHS (SYSDATE, -12), 'yyyy');
|
||||
|
||||
CREATE OR REPLACE VIEW blcc_v_rap_prs_accounts
|
||||
(
|
||||
soort_gebruiker,
|
||||
|
||||
Reference in New Issue
Block a user