Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: heillandiHi,
I am having the following situation:
Table 1 has columns "Value from" and "Value to" , so each row is specifying a certain range of account numbers and a name for this account group.
Table 2 has a plain list of account numbers existing.
I'm wondering how can I "expand" each row of Table 1 adding the numbers within the range as new rows, i.e. if I have a following entry for accounts between 10000-10100
#name1 --- 10000 --- 10100
then I need to generate 100 new entries looking like this:
#name1 --- 10000 -- 10100 --- 10000
#name1 --- 10000 -- 10100 --- 10001
#name1 --- 10000 -- 10100 --- 10002
...
#name1 --- 10000 -- 10100 --- 10099
#name1 --- 10000 -- 10100 --- 10100
Alternatively, how can I create a "nested loop" which picks a row from Table 1, goes through Table 2 and gets the values found there for the specified range; moves to the next row of Table 1 and goes again through Table 2, and so until the end of Table 1..
I understand "logically" how a piece of code should work but don't know which node to put it to.. I tried to put emit function inside the "while" loop (within Filter node), but it didn't work...