Given the table below:
iprofileid iownerid(pk) isurveyid
10 9 10
12 9 35
55 1 10
56 1 35
how would one write an update statement so that the iprofileid's are the same for the primary key iownerid. E.g. iprofileid would be 10 and 10 for iownerid of 9, and iprofileid would be 55 and 55 for iownerid of 1. Sure this could be done manually one at a time, but I am talking about thousands of records.
iprofileid iownerid(pk) isurveyid
10 9 10
12 9 35
55 1 10
56 1 35
how would one write an update statement so that the iprofileid's are the same for the primary key iownerid. E.g. iprofileid would be 10 and 10 for iownerid of 9, and iprofileid would be 55 and 55 for iownerid of 1. Sure this could be done manually one at a time, but I am talking about thousands of records.