From b42820fe10c06ba6a8c6aa0b8d8d65fe1e73a90a Mon Sep 17 00:00:00 2001 From: Sander Schepers Date: Thu, 19 Jan 2023 14:37:22 +0000 Subject: [PATCH] VEBE#76143 Vraag over toevoeging extra kolom in rapport excl mutaties svn path=/Customer/trunk/; revision=58739 --- VEBE/vebe.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/VEBE/vebe.sql b/VEBE/vebe.sql index 8879ed6c3..a53cf0d7d 100644 --- a/VEBE/vebe.sql +++ b/VEBE/vebe.sql @@ -964,6 +964,7 @@ CREATE OR REPLACE VIEW vebe_rap_wagenpark cnt_lease_looptijd_van, cnt_lease_looptijd_tot, cnt_lease_looptijd_mnd, + cnt_lease_eerstedatum, perc_lease_duur, lease_weken_tegaan, cnt_lease_rappeldatum, @@ -1045,6 +1046,14 @@ AS SELECT cnt_lease_looptijd_van, cnt_lease_looptijd_tot, cnt_lease_looptijd_mnd, + (SELECT MIN (TRUNC (c.cnt_contract_aanmaak)) + FROM cnt_contract c, cnt_contract_object co + WHERE c.cnt_contract_key = co.cnt_contract_key + AND co.cnt_contract_object_verwijder IS NULL + AND co.cnt_ins_deel_key = tmp.ins_deel_key + AND c.cnt_contract_verwijder IS NULL + AND c.ins_discipline_key = tmp.lease_disc_key) + AS cnt_lease_eerstedatum, perc_lease_duur, lease_weken_tegaan, cnt_lease_rappeldatum,