OK - I'm a bit of a newbie here...
I would like to 'process' a table - read a row at a time and INSERT or UPDATE a row in another table. In more practical terms - I have a denormalized table that allowed for 5 items, that now need to be put into a normalized child table. So, I wish to read a record (row) form the source table - and in this case create however of the possible 5 items into the corresponding normailized table, then read the next row in the source table...
In general, how would one accomplish this type of batch processing or programming flow in a SQL script?
Thanks
I would like to 'process' a table - read a row at a time and INSERT or UPDATE a row in another table. In more practical terms - I have a denormalized table that allowed for 5 items, that now need to be put into a normalized child table. So, I wish to read a record (row) form the source table - and in this case create however of the possible 5 items into the corresponding normailized table, then read the next row in the source table...
In general, how would one accomplish this type of batch processing or programming flow in a SQL script?
Thanks