I am getting requests from users for what amounts to concatenating varchar data from different rows in the same table. The best example is tracking; a sales order can ship out in multiple boxes that have different tracking numbers. So I have a table with a list of tracking numbers that corresponds to the sales order numbers, and users would prefer to see the tracking numbers concatenated into one field in one row, i.e., order 123 has "Tracking 1, Tracking 2, Tracking 3" rather than having three rows for order 123 to list each tracking number separately (which is the result when you just link the two tables).
The software we're moving away from uses a CASE loop to accomplish this, but I'm not sure what the appropriate loop in a Birst scripted source would be. I'm guessing it's either a For or While loop. Has anyone else done something similar? One problem is that there's no way to know how many tracking numbers there will be for each order number.