Created
June 23, 2022 08:41
-
-
Save Djourdain/3a5e8e62f9d3684c8bdd97942c4b9d90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TRIM(f.cdfam) as code_famille, | |
TRIM(ssf.cdssfam) as code_rayon, | |
TRIM(ssf.libssfam) as libelle_rayon, | |
NULLIF(f.cdtva,'E') as code_tva | |
FROM famille f | |
INNER JOIN sous_famille sf | |
ON sf.cdfam = f.cdfam | |
INNER JOIN sous_sous_famille ssf | |
ON ssf.cdsfam = sf.cdsfam | |
AND ssf.libssfam IS NOT NULL | |
AND ssf.timestamp >= :dateDernierTraitement | |
WHERE f.dtann IS NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment