Ajout des zones
This commit is contained in:
parent
3dfa1cecc0
commit
e48e5abf88
@ -62,7 +62,13 @@ source ciblage
|
||||
bilHN, \
|
||||
bilYP, \
|
||||
codeCommune AS adr_com, \
|
||||
LOWER('EX') AS exclu \
|
||||
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 zru WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as zru, \
|
||||
CASE zus WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as zus, \
|
||||
CASE cucs WHEN '' THEN 0 WHEN 'NSP' THEN 0 ELSE 1 END as cucs, \
|
||||
IF(zrr=1,1,0) as zrr, \
|
||||
IF(zafr=1,1,0) as zafr \
|
||||
FROM etablissements_act WHERE siren>100;
|
||||
|
||||
sql_field_string = siren
|
||||
@ -121,6 +127,12 @@ source ciblage
|
||||
sql_attr_uint = bilHN
|
||||
sql_attr_uint = bilYP
|
||||
sql_field_string = adr_com
|
||||
sql_attr_uint = zus
|
||||
sql_attr_uint = zru
|
||||
sql_attr_uint = zfu
|
||||
sql_attr_uint = cucs
|
||||
sql_attr_uint = zrr
|
||||
sql_attr_uint = zafr
|
||||
}
|
||||
|
||||
index ciblage
|
||||
|
Loading…
Reference in New Issue
Block a user