Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Can any one suggest Apply map function can be used if two tables having more than two columns.
Yes,
You have to use two (multiple) mapping loads
At a time it just support one ID and one mapping
regards
ashfaq
Or, you can simply Join them.
yes u should use nested mapping. in applymap inside one more applymap or by usinf if condn
Sandhya,
Yes very much possible, as suggested by Ashfaq you need to go with two mapping loads.
Attached is example.
Thanks,
AS
Mapping tables and applymap only support two column tables. If you have three columns to map you can use two mapping tables. Although this sounds like more work it is easy to add and performs well during reloads.
Yes but you need to write separate Mapping load for each and every column.
Hi,
Can you come up with some sample data and your expected output so that it would be easier to understand your requirement.
If you looking for a lookup with more than two columns in a table then use Lookup() in script. refer below link
If you want to double mapping then use nested applymap() like below
LOAD
*,
ApplyMap('Table2', ApplyMap('Table1', Value1)) AS MappedValue
FROM DataSource;
Hope this helps you.
Regards,
Jagan.
Can u give any Example Application.
Better post a sample application with your sample data. we can help you out with applymap. Just descibe what exactly you Need.