Iterator Operator

The Iterator operator provides a looping construct for view models.

Based on criteria you specify, an Iterator repeatedly executes the portion of the flow upstream from its position and accumulates the results. You might use an Iterator if, for example, you need to execute a parameterized input source once for each of a series of dates, sales regions, or customer IDs. You can use the Iterator operator in two ways:


Note: You can create nested iterations (for example, a SELECT within a SELECT) by incorporating multiple Iterator operators into your flow. In a pair of Iterator operators, the downstream one forms the outer loop and the upstream one forms the inner loop.
Related concepts
Input Source Element
Result Element
Aggregate Operator
Custom Operator
Generator Operator
Group By Operator
Intersection Operator
Join Operator
Multiplexer Operator
Order By Operator
Projection Operator
Select Operator
Splitter Operator
Union Operator
Update Operator

For product-related issues, contact Sybase Technical Support at 1-800-8SYBASE. Send your feedback on this help topic directly to Sybase Technical Publications: pubs@sybase.com