Hello everyone, I came here to get some help or ideas for recoding a table and population design. Currently I have a single complex statement that creates and populates a table, and creates a recursive table within, some innner selects and and union all. Below is an example. It gets created in regular perm space. I need to create a GTT and then populate the table there, and maintain the same logic during this conversion. I'm not very familiar with working with recursions. Any and all design approach ideas are welcome. Please let me know what other details you need. Thanks.