Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have two fieldvalues coming from different Sources and they are
Pasteur Opwarmen and Pasteur opwarmen. These values are both same. How can I adjust them.
I tried Mapsubstring like this
M_MappingID:
Mapping
LOAD * INLINE [
F1, F2
Pasteur Opwarmen, Pasteur opwarmen
];
Table:
Load....
.....
Mapsubstring('M_MappingID','Pasteur Opwarmen'),
applymap(...)
From
files/...
;
I dont see any change.
Any ideas??
Thanks
sravan
Hello Sravan,
Using
where OldFieldName is the name of the field that stores the old value and NewFieldName is the name you want to use the new changed value in the table should work.ApplyMap('M_MappingID', OldFieldName) AS NewFieldName
Is this what you are looking for?
Regards
EDIT: If you are working with names, you may use function Capitalize, should all words in that field begin with capital letter, so
where FIELD contains 'aaa bbb' will return 'Aaa Bbb'Capitalize(FIELD)
Hello Sravan,
Using
where OldFieldName is the name of the field that stores the old value and NewFieldName is the name you want to use the new changed value in the table should work.ApplyMap('M_MappingID', OldFieldName) AS NewFieldName
Is this what you are looking for?
Regards
EDIT: If you are working with names, you may use function Capitalize, should all words in that field begin with capital letter, so
where FIELD contains 'aaa bbb' will return 'Aaa Bbb'Capitalize(FIELD)
Thanks capitalize worked..