sparks
2012-06-14 14:20:03 UTC
build new records 1 to many
test values in source and if it's a 1 in source it's a name in
destination
source table destination table
row 1 col1=1 row 1 col1=bob
row 1 col2=1 row 2 col1=fred
row 1 col3=1 row 3 col1=carl
build multible records based on what is in the source rows.
do for all rows in source.
I can see doing this by reading each column and saying if col1 =1 then
destination.col1 = bob
being new to this I do not know the correct way to automate this.
any pointers are greatly appreciated
test values in source and if it's a 1 in source it's a name in
destination
source table destination table
row 1 col1=1 row 1 col1=bob
row 1 col2=1 row 2 col1=fred
row 1 col3=1 row 3 col1=carl
build multible records based on what is in the source rows.
do for all rows in source.
I can see doing this by reading each column and saying if col1 =1 then
destination.col1 = bob
being new to this I do not know the correct way to automate this.
any pointers are greatly appreciated