CAST pour les éléments non nombre
This commit is contained in:
parent
7ebb5e4f59
commit
34e9a95f55
@ -37,7 +37,7 @@ source ciblage
|
|||||||
IF(dirNom='',0,1) AS dirNom, \
|
IF(dirNom='',0,1) AS dirNom, \
|
||||||
nbEtab, \
|
nbEtab, \
|
||||||
IF(nbMPubli>0,1,0) AS nbMPubli, \
|
IF(nbMPubli>0,1,0) AS nbMPubli, \
|
||||||
IF(sirenGrp>0,1,0) AS sirenGrp, \
|
IF(CAST(sirenGrp AS UNSIGNED)>100,1,0) AS sirenGrp, \
|
||||||
nbActio, \
|
nbActio, \
|
||||||
IF(nbActio>0,1,0) AS actio, \
|
IF(nbActio>0,1,0) AS actio, \
|
||||||
nbPart, \
|
nbPart, \
|
||||||
@ -61,7 +61,7 @@ source ciblage
|
|||||||
bilHM, \
|
bilHM, \
|
||||||
bilHN, \
|
bilHN, \
|
||||||
bilYP, \
|
bilYP, \
|
||||||
codeCommune AS adr_com, \
|
CAST(codeCommune AS UNSIGNED) AS codeCommune, \
|
||||||
CASE zus WHEN '' THEN 0 WHEN 'HORSZONE' THEN 0 WHEN 'NSP' THEN 0 WHEN 'X' THEN 0 ELSE 1 END as zus, \
|
CASE zus WHEN '' THEN 0 WHEN 'HORSZONE' THEN 0 WHEN 'NSP' THEN 0 WHEN 'X' THEN 0 ELSE 1 END as zus, \
|
||||||
CASE zfu WHEN '' THEN 0 WHEN 'HORSZONE' THEN 0 WHEN 'NSP' THEN 0 WHEN 'X' THEN 0 ELSE 1 END as zfu, \
|
CASE zfu WHEN '' THEN 0 WHEN 'HORSZONE' THEN 0 WHEN 'NSP' THEN 0 WHEN 'X' THEN 0 ELSE 1 END as zfu, \
|
||||||
CASE zru WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as zru, \
|
CASE zru WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as zru, \
|
||||||
|
Loading…
Reference in New Issue
Block a user