Skip to content
Snippets Groups Projects
Commit b22d5d06 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Affinage de l'indicateur 380

parent dccdf3f0
Branches
Tags 0.1
No related merge requests found
......@@ -5,11 +5,14 @@ SELECT
FROM (
SELECT
i.id intervenant_id,
i.annee_id annee_id,
i.structure_id structure_id
MAX(i.annee_id) annee_id,
MAX(i.structure_id) structure_id
FROM intervenant i
JOIN contrat c ON c.intervenant_id = i.id AND c.histo_destruction IS NULL
JOIN statut_intervenant si ON si.id = i.statut_id
WHERE i.export_date IS NULL
AND si.code != 'BIATSS'
AND si.type_intervenant_id = 2
AND i.affectation_fin < sysdate
AND c.date_retour_signe IS NOT NULL
AND i.annee_id = (SELECT valeur FROM parametre p WHERE nom = 'annee')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment