BLCC#84498 Ondersteuning communicatie rapporten
svn path=/Customer/trunk/; revision=65916
This commit is contained in:
@@ -29046,16 +29046,27 @@ CREATE OR REPLACE VIEW blcc_v_rap_relatietype
|
||||
key,
|
||||
bedrijfnaam,
|
||||
relatietype,
|
||||
opmerking
|
||||
opmerking,
|
||||
contract_nummer,
|
||||
contract_nummer_intern,
|
||||
looptijd_van,
|
||||
looptijd_tot,
|
||||
contractsoort
|
||||
)
|
||||
AS
|
||||
SELECT DISTINCT b.prs_bedrijf_key,
|
||||
b.prs_bedrijf_naam,
|
||||
rt.prs_relatietype_omschrijving,
|
||||
b.prs_bedrijf_opmerking
|
||||
FROM prs_bedrijf b, prs_relatietype rt, cnt_contract c
|
||||
b.prs_bedrijf_opmerking,
|
||||
c.cnt_contract_nummer,
|
||||
c.cnt_contract_nummer_intern,
|
||||
c.cnt_contract_looptijd_van,
|
||||
c.cnt_contract_looptijd_tot,
|
||||
cs.ins_discipline_omschrijving
|
||||
FROM prs_bedrijf b, prs_relatietype rt, cnt_contract c, ins_tab_discipline cs
|
||||
WHERE rt.prs_relatietype_key(+) = b.prs_relatietype_key
|
||||
AND c.cnt_prs_bedrijf_key = b.prs_bedrijf_key
|
||||
AND cs.ins_discipline_key = c.ins_discipline_key
|
||||
AND c.ins_discipline_key IN (2122, 2123, 2124)
|
||||
AND SYSDATE BETWEEN c.cnt_contract_looptijd_van AND c.cnt_contract_looptijd_tot
|
||||
AND c.cnt_contract_verwijder IS NULL
|
||||
@@ -30051,7 +30062,7 @@ SELECT com.alg_gebouw_key,
|
||||
2141,
|
||||
2142)
|
||||
AND c.cnt_contract_looptijd_tot < TRUNC (SYSDATE)
|
||||
AND c.cnt_contract_looptijd_tot > ADD_MONTHS (TRUNC (SYSDATE), -3)
|
||||
AND c.cnt_contract_looptijd_tot > ADD_MONTHS (TRUNC (SYSDATE), -12)
|
||||
GROUP BY g.alg_gebouw_key,
|
||||
r.alg_ruimte_key,
|
||||
b.prs_bedrijf_naam,
|
||||
|
||||
Reference in New Issue
Block a user