spartan2010
Programmer
Hello Friends,
I have a table with Surrogate key,4 additional key columns & 2 non key columns.
Here are three sample rows.
Surr keys non-keys
777 1 2 3 4 Y 777
888 1 2 3 4 Y 888
999 1 2 3 4 N 999
I need to take the value 999 & replace 777 & 888s in the non-key last column.In otherwords 999 is the old surrogate key (I have the same value in a non-key column also)& I need to update the new rows' non-key column value with the old surrogate key value.
I need the following result.
Surr keys non-keys
777 1 2 3 4 Y 999
888 1 2 3 4 Y 999
999 1 2 3 4 N 999
How can I easily accomplish that?
I have a table with Surrogate key,4 additional key columns & 2 non key columns.
Here are three sample rows.
Surr keys non-keys
777 1 2 3 4 Y 777
888 1 2 3 4 Y 888
999 1 2 3 4 N 999
I need to take the value 999 & replace 777 & 888s in the non-key last column.In otherwords 999 is the old surrogate key (I have the same value in a non-key column also)& I need to update the new rows' non-key column value with the old surrogate key value.
I need the following result.
Surr keys non-keys
777 1 2 3 4 Y 999
888 1 2 3 4 Y 999
999 1 2 3 4 N 999
How can I easily accomplish that?