diff --git a/doc/Connecteurs-Import/Octopus/SRC_CORPS.sql b/doc/Connecteurs-Import/Octopus/SRC_CORPS.sql index 4e984a636a5282b144ee6aa6c4a4fb256d411907..62e3d834e5c031a61d365b4ecb30dec87ae93109 100644 --- a/doc/Connecteurs-Import/Octopus/SRC_CORPS.sql +++ b/doc/Connecteurs-Import/Octopus/SRC_CORPS.sql @@ -7,4 +7,4 @@ SELECT c.lib_long libelle_long, FROM corps@octoprod c JOIN source s ON s.code = 'Octopus' -WHERE SYSDATE BETWEEN COALESCE(c.d_ouverture, SYSDATE) AND COALESCE(c.d_fermeture + 1, SYSDATE) \ No newline at end of file +WHERE SYSDATE BETWEEN COALESCE(c.d_ouverture, SYSDATE) AND COALESCE(c.d_fermeture + 1, SYSDATE) and c.d_fermeture IS NOT NULL and c.histo_destruction IS NULL \ No newline at end of file