Loading doc/Connecteurs-Import/Octopus/SRC_AFFECTATION_RECHERCHE.sql +9 −5 Original line number Diff line number Diff line Loading @@ -4,8 +4,9 @@ WITH affectation_recherche AS ( SELECT indaff.individu_id z_code, s.id z_structure_recherche_id, indaff.id source_code from indaff.id source_code, s.code code FROM octo.individu_affectation@octoprod indaff JOIN octo.v_structure@octoprod s ON s.id = indaff.structure_id WHERE Loading @@ -20,5 +21,8 @@ SELECT DISTINCT i.id intervenant_id, s.libelle_court labo_libelle FROM affectation_recherche affrech JOIN source src ON src.code = 'Octopus' JOIN intervenant i ON i.code = CAST(affrech.z_code AS varchar(255)) AND i.annee_id = unicaen_import.get_current_annee JOIN octo.v_structure@octoprod s ON affrech.z_structure_recherche_id = s.id No newline at end of file JOIN intervenant i ON i.code = CAST(affrech.z_code AS varchar(255)) AND i.annee_id = unicaen_import.get_current_annee JOIN structure s ON s.code = affrech.code Loading
doc/Connecteurs-Import/Octopus/SRC_AFFECTATION_RECHERCHE.sql +9 −5 Original line number Diff line number Diff line Loading @@ -4,8 +4,9 @@ WITH affectation_recherche AS ( SELECT indaff.individu_id z_code, s.id z_structure_recherche_id, indaff.id source_code from indaff.id source_code, s.code code FROM octo.individu_affectation@octoprod indaff JOIN octo.v_structure@octoprod s ON s.id = indaff.structure_id WHERE Loading @@ -20,5 +21,8 @@ SELECT DISTINCT i.id intervenant_id, s.libelle_court labo_libelle FROM affectation_recherche affrech JOIN source src ON src.code = 'Octopus' JOIN intervenant i ON i.code = CAST(affrech.z_code AS varchar(255)) AND i.annee_id = unicaen_import.get_current_annee JOIN octo.v_structure@octoprod s ON affrech.z_structure_recherche_id = s.id No newline at end of file JOIN intervenant i ON i.code = CAST(affrech.z_code AS varchar(255)) AND i.annee_id = unicaen_import.get_current_annee JOIN structure s ON s.code = affrech.code