Creates a result table with a specified cursor. The optional naming of a cursor lets you use positioned data manipulation language statements in the DO clause of a FOR loop.