The first table select is for calculated 12 month average cost of parts.
Output two fields $c_1_ITEM and $c_9_12M_UNIT_COST
The second is multiple table select for parts date based on current month data.
Output many fields. $D_item, $D_agc, and etc....
Parts here being "item". array 1 item "$c_1_ITEM" = array 2 item "$D_item". Add average cost "$c_9_12M_UNIT_COST" to table 2 based on item.
Array two after - $D_item, $D_agc, c_9_12M_UNIT_COST, and etc.....
There is not a one to one relationship here, so a push would not work. But every part "item" in table two has a corsponding entry in table one.
I understand that I probably need to do a hash of hash, but I am not sure how to get there. I suspect a foreach is needed also.
Thanks!In reply to Re^2: Linking and Combining Two Arrays
by roguez33
in thread Linking and Combining Two Arrays
by roguez33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |