G
Guest
Can anyone come up with an SQL statement to do the following?
I have a table with a series of records with zero keys representing initial
values. The first time a user goes to update this table I need to duplicate
all these rows but with the real keys in them. So I need someting like this:
BEFORE
Key= 0 Data=0
Key= 0 Data=0
AFTER
Key= 0 Data=0
Key= 0 Data=0
Key= 1 Data=0
Key= 1 Data=0
Yes, the keys do allow duplicates!
I have a table with a series of records with zero keys representing initial
values. The first time a user goes to update this table I need to duplicate
all these rows but with the real keys in them. So I need someting like this:
BEFORE
Key= 0 Data=0
Key= 0 Data=0
AFTER
Key= 0 Data=0
Key= 0 Data=0
Key= 1 Data=0
Key= 1 Data=0
Yes, the keys do allow duplicates!