Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Please explain when in which scenario we need to use the applymap ?Please give one simple example.
-Lary
It's for simple mapping purposes like this:
input => output
1 => A
2 => B
2 => C
Map1:
mapping load * inline [x,y
1,A
2,B
3, C] ;
ApplyMap ( 'Map1', 2 ) | returns | B |
Ralf
Lary,
Here is a scenario:
Thre is a table "Users" that contains UserId and UserName. There is another table "Organisations", where there are fields OwnerId, which contains UserId, and ProjectManagerId also contains UserId. And one more table, Orders, with fields AccountId and SalesRepId. You want Orders linked Organizations by AccountId, and not by any users.
to deal with all these multiple User roles, create map:
UserMap:
MAPPING SQL SELECT DISTINCT
UserId,
UserName
FROM Users;
Regards,
Michael
Lary.
Have a look at http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/. There is some good info her for applymaps.
Cheers,
Neil