troubleshooting Question

Update records in same table

Avatar of zachvaldez
zachvaldezFlag for United States of America asked on
SQL
3 Comments1 Solution233 ViewsLast Modified:
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!


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros