UWVA#79974 Rap/Bugfix (Regiomanager en Projectleider FB)
svn path=/Customer/trunk/; revision=61763
This commit is contained in:
@@ -646,7 +646,7 @@ AS
|
||||
WHERE g.mld_adres_key = a.mld_adres_key
|
||||
AND a.mld_adres_verwijder IS NULL) b
|
||||
ON a.alg_gebouw_key = b.alg_gebouw_key
|
||||
LEFT JOIN (SELECT g.alg_gebouw_key, l.alg_locatie_adres, l.alg_locatie_postcode, l.alg_locatie_plaats, d.alg_district_omschrijving, d.alg_regio_key
|
||||
LEFT JOIN (SELECT g.alg_gebouw_key, l.alg_locatie_adres, l.alg_locatie_postcode, l.alg_locatie_plaats, d.alg_district_omschrijving, d.alg_regio_key, d.alg_district_key
|
||||
FROM alg_gebouw g, alg_locatie l, alg_district d
|
||||
WHERE g.alg_locatie_key = l.alg_locatie_key
|
||||
AND l.alg_district_key = d.alg_district_key) c
|
||||
@@ -872,14 +872,14 @@ AS
|
||||
WHERE ok.alg_kenmerk_key = 1625
|
||||
AND ok.alg_onrgoed_niveau = 'D'
|
||||
AND fac.safe_to_number (ok.alg_onrgoedkenmerk_waarde) = pf.prs_perslid_key) rm
|
||||
ON a.alg_locatie_key = rm.alg_onrgoed_key
|
||||
ON c.alg_district_key = rm.alg_onrgoed_key
|
||||
LEFT JOIN -- 1645=Projectleider FB
|
||||
(SELECT ok.alg_onrgoed_key, pf.prs_perslid_naam_full naam
|
||||
FROM alg_v_aanwezigonrgoedkenmerk ok, prs_v_perslid_fullnames_all pf
|
||||
WHERE ok.alg_kenmerk_key = 1645
|
||||
AND ok.alg_onrgoed_niveau = 'D'
|
||||
AND fac.safe_to_number (ok.alg_onrgoedkenmerk_waarde) = pf.prs_perslid_key) pl
|
||||
ON a.alg_locatie_key = pl.alg_onrgoed_key
|
||||
ON c.alg_district_key = pl.alg_onrgoed_key
|
||||
WHERE (a.alg_srtgebouw_key = 61 AND c.alg_regio_key NOT IN (21, 41)) -- Satelliet
|
||||
OR e.cnt_alg_plaats_key IS NOT NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user