Thanks Al, How do i use one cursor to create an array with first table and another to run in the second table, and, for each line, get the next value from the array and insert into the third table?