Created
October 2, 2025 20:06
-
-
Save CEZERT/665b7a2c8a43a600329df8ade1cee46b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
-- It's a query that take alny datast where DESIGNATOR fiels is less or equals 10000-- | |
SELECT | |
LINE_ID, LINE_GUID, DESIGNATOR, DESCRIPTION, TYPE_CL, | |
PRODUCT_TYPE_SCL, PRODUCT_SUBTYPE_SCL, OPERATING_STATUS_GCL, | |
SYSTEM_TYPE_CL, INTERSTATE_LF | |
FROM | |
ALEU_PODS.pods.LINE | |
WHERE | |
-- 1. NETTOYAGE : Exclure les valeurs non-numériques dans le champ DESCRIPTION (pour éviter l'erreur de conversion) | |
DESCRIPTION NOT LIKE '%AIR LIQUIDE EUROPE%' | |
-- AJOUTEZ ICI TOUTES LES AUTRES VALEURS TEXTUELLES NON NUMÉRIQUES QUI FONT PLANTER LA REQUÊTE, si nécessaire. | |
-- 2. FILTRE NUMÉRIQUE SIMULÉ : Appliqué au champ DESIGNATOR | |
AND | |
( | |
-- Cas A : Nombres de 1 à 4 chiffres (toujours < 10000) | |
(LEN(DESIGNATOR) <= 4) | |
OR | |
-- Cas B : Nombre exact 10000 | |
(DESIGNATOR = '10000') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment