Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load and replace if text in another field

Hello

I'am trying to replace a value if text is present in another table is this possible ?

the table looks something like this

abcd
somethinga123
something elseb243
somethingc312
something elsed42

Here i want to chage the c table to 0 if the text "something else" is in table a

1 Solution

Accepted Solutions
sivarajs
Specialist II
Specialist II

if(wildmatch(a,'*something else*'),0,a) as c

View solution in original post

5 Replies
sivarajs
Specialist II
Specialist II

if(wildmatch(a,'*something else*'),0,a) as c

Not applicable
Author

Hey thank you for responding.

I am getting "Field names must be unique within table" from this.

Not applicable
Author

load

a, b,

if(wildmatch(a, 'something else'),0,c) as c

from table.xls

SunilChauhan
Champion
Champion

see the attached file

hope this helps

Sunil Chauhan
Gysbert_Wassenaar

Make sure you're not already loading field c, for example with load *. You'll have to list the field names individually.

load a,b,d, if(wildmatch(a,'*something else*'),0,a) as c

from ...somewhere...;


talk is cheap, supply exceeds demand