Commit f0a62ab2 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout fin_affectation dans la MV_INTERVENANT.sql

parent 8f6021cc
......@@ -234,7 +234,12 @@ SELECT DISTINCT
THEN NULL
WHEN (i.z_type = 'vacataire' AND i.validite_fin < compte.date_fin AND i.validite_fin IS NOT NULL) THEN compte.date_fin
ELSE i.validite_fin
END validite_fin
END validite_fin,
CASE
WHEN i.validite_fin = to_date('01/01/9999', 'dd/mm/YYYY')
THEN NULL
ELSE i.validite_fin affectation_fin
END
FROM i
JOIN induni
ON i.code = induni.c_individu_chaine --AND induni.c_source IN ('HARP', 'OCTO', 'SIHAM'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment