Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can I use the following script ?
Vente :
Load * ,
IF(comp is null , 'O',comp) as Comp
Resident TempVente;
drop table Vente;
IF(Isnull(comp), 'O',comp) as Comp
If comp contains only numeric values, use the Alt function ...
Alt(comp,0) as Comp
.. otherwise use IsNull ...
If(IsNull(comp),'0',comp) as Comp
flipside
Hi,
Try,
LOAD
*,
IF(ISNULL(Comp) OR LEN(Comp) = 0, 0, Comp) AS FieldName
Resident TempVente;
drop table Vente;
Hi,
Another solution
Vente :
Load * ,
IF(Len(Trim(comp))>0, 0,comp) as Comp
Resident TempVente;
drop table TempVente;
Above script will work, even for blank cells.
surely you want to change your DROP statement to:
drop table TempVente;
I would reverse the order of true and false here
If(Len(Trim(comp)) > 0, comp, 0) as Comp
My mistake