For more information on... See... cursors Teradata Vantage™ - SQL Stored Procedures and Embedded SQL , B035-1148