Dynamic SQL Query in PostGres

Hi Keith,

the approach is to find an attribute by which the source dataset can be partitioned, then process the dataset partition by partition using iterations.

See this response for details: How to process Large dataset from Database

Let me know if you need any assistance with setting up iterations.