Skip to main content
Kinetica supports iteration over each record within a data set for the purpose of creating a result set with 0 to N result records per record in the original set. This iteration can be variable, based on some value within each record, or fixed, based on a given constant value. The iteration is performed by joining against the virtual ITER table, as follows:
Iteration Syntax
The <column expression> can be replaced by a constant for fixed iteration. For example, to extract all of the individual letters from a column of words, with one record per letter extracted (using variable iteration):
Iteration Over Column Values Example
To duplicate the set of words five times (using fixed iteration):
Iteration Over Table Example
For more detail, examples, and limitations, see Iteration.