zachvaldez
asked on
Update records in same table
I have the following records in my temporary table which I have duplicates I am working: I would like the schoolID match.
tempid fullname FirstLastName schoolid birthdate ssn sourceid
35 John H Smith John smith 77777 01/0179 999-99-9999 JXX5
89 John Smith John Smith 66666 xxxxxx xxxxxx FFF7
this is just an example but I have a 100 pairs in my temp table and I am looking for a solution to automate the update.
My objective is to make the schoolid match. In here, I would like update tempID 89 to the same schoolid like tempid 35 -77777. I would prefer sourceid FFF7 follow and match all schoolIds of sourceid JXX5.
thanks!
tempid fullname FirstLastName schoolid birthdate ssn sourceid
35 John H Smith John smith 77777 01/0179 999-99-9999 JXX5
89 John Smith John Smith 66666 xxxxxx xxxxxx FFF7
this is just an example but I have a 100 pairs in my temp table and I am looking for a solution to automate the update.
My objective is to make the schoolid match. In here, I would like update tempID 89 to the same schoolid like tempid 35 -77777. I would prefer sourceid FFF7 follow and match all schoolIds of sourceid JXX5.
thanks!
What criteria are you using to consider a record as a duplicate? Just the FirstLastName column?
ASKER
yes
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.