PCHD#41213 -- view toegevoegd voor rapportages t.b.v. het tonen van de totale korting per onderwerp

svn path=/Customer/trunk/; revision=34691
This commit is contained in:
Jordy Polman
2017-07-20 13:59:22 +00:00
parent c5ab450fa3
commit a29fe23b91

View File

@@ -1720,8 +1720,26 @@ EXCEPTION
'OTHERS (error ' || SQLCODE || '/' || SUBSTR (SQLERRM, 1, 100) || ')');
END;
/
--Klant specifieke view voor het tonen van het totaal korting per onderwerp
CREATE OR REPLACE VIEW PCHA_V_TOTAAL_KORTING_OND
AS
SELECT ins_discipline_omschrijving,
DECODE (
UPPER (ins_discipline_omschrijving),
'COMFORT', 'FTRC',
'FUNCTIONALITEIT', 'FTRC',
'TOEGANKELIJKHEID', 'FTRC',
'REPRESENTATIVITEIT', 'FTRC',
'VEILIGHEID ' || CHR (38) || ' GEZONDHEID', 'V' || CHR (38) || 'G',
'WET ' || CHR (38) || ' REGELGEVING', 'W' || CHR (38) || 'R',
'Dienst')
onderwerp, totaal
FROM pchx_v_monitoring m, mld_discipline d
where m.discipline_key = d.ins_discipline_key
AND totaal is not null;
------ payload end ------