Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a field which contains four values separated by three '-'.
I would like to load the table containing this field into another table with four fields instead of the concatenated one.
What commands I need to do this?
Thanks.
LOAD
subfield(FIELD,'-',1) as F1,
subfield(FIELD,'-',2) as F2,
subfield(FIELD,'-',3) as F3,
subfield(FIELD,'-',4) as F4,
...
FROM ...;
LOAD
subfield(FIELD,'-',1) as F1,
subfield(FIELD,'-',2) as F2,
subfield(FIELD,'-',3) as F3,
subfield(FIELD,'-',4) as F4,
...
FROM ...;
I think you can use subfield...
subfield(Fieldname, '-', 1) as Field1,
subfield(Fieldname, '-', 2) as Field2... etc.