Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I am loading a table where a key field (for linking with other tables) may be just numeric or may be alphanumeric.
eg. 12345
or 1A345
As it is LOADed, the field is therefore interpreted as a number or a field.
I want to force the field to always be a string field, for convenience.
Please propose the best way of achieving this.
Thanks
Richard
Hi,
Use the Text() function.
Load Text(FIeld) as New_Field
From xyz;
Regards,
Kaushik Solanki
Sorry .... please see correction below
As it is LOADed, the field is therefore interpreted as a number or a string.
Hi,
Use the Text() function.
Load Text(FIeld) as New_Field
From xyz;
Regards,
Kaushik Solanki
hi
Text(fieldname) use for convert number into text
num(fieldname) use for convert into number
Hi
Try with Text() function, resolve ur problem.
which convert num to string.
Thanks !
I guessed there would be an easy answer, but for some reason I thought the TEXT() function would fail on a string field
Thanks dude..this thread save me a lof of time..
There is a knowledge article relate to this that is important to be aware of:
Leading zeros are missing in loaded data values
https://qliksupport.force.com/articles/000003759
When leading zeros exist in the data load, the behavior can seem odd with leading zeros added sometimes and removed sometimes. This article explains the behavior and gives a workaround if different behavior is needed.