From eecdf6773d246d48aa399454693d64eb3a169e12 Mon Sep 17 00:00:00 2001 From: Arthur Egberink Date: Tue, 10 Oct 2017 08:00:46 +0000 Subject: [PATCH] PCHW#44907 -- Indexering toevoegen voor Westland svn path=/Customer/trunk/; revision=35623 --- PCHW/pchw.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/PCHW/pchw.sql b/PCHW/pchw.sql index 8ab3dbf6d..7e56b284e 100644 --- a/PCHW/pchw.sql +++ b/PCHW/pchw.sql @@ -1719,6 +1719,17 @@ AS FROM prs_afdeling WHERE prs_afdeling_verwijder IS NULL; + +CREATE OR REPLACE VIEW pchw_v_rap_indices (svd, index_waarde) as + SELECT DISTINCT + COALESCE (res_artikel_groep, 'SVD1'), + pchx_mon.get_index_value (SYSDATE, + COALESCE (res_artikel_groep, 'SVD1')) + index_2017 + FROM res_artikel +ORDER BY fac.safe_to_number ( + SUBSTR (COALESCE (res_artikel_groep, 'SVD1'), 4)); + ------ payload end ------ SET DEFINE OFF