BLCC#76344 Rap/Corrigeren kolom (nvo_getekend)

svn path=/Customer/trunk/; revision=58876
This commit is contained in:
Maarten van der Heide
2023-01-30 11:34:28 +00:00
parent 53199b6719
commit 53a235d4f9

View File

@@ -20184,9 +20184,12 @@ AS
ON x.alg_onrgoed_key = lc.fac_tracking_refkey
LEFT JOIN cad_tekening tek
ON x.alg_verdieping_key = tek.alg_verdieping_key
AND tek.cad_tekening_verwijder IS NULL
LEFT JOIN cad_imp_contour cont
ON x.alg_ruimte_nr = cont.cad_imp_contour_nr
AND cont.cad_tekening_key = tek.cad_tekening_key
AND cont.cad_imp_contour_concept = 0
AND cont.prj_scenario_key IS NULL
LEFT JOIN ( SELECT cp.cnt_alg_plaats_key, COUNT ( * )
FROM cnt_contract c, cnt_contract_plaats cp
WHERE c.ins_discipline_key IN (2122,2123) -- LA/LA CRF