Skip to content
Advertisement

Copy data from one row to another in SQL Server in the same table

I have a table that has two variations of data:

Table MYDATA

I would like to update Version A’s StreetNumber into Version B.

There will be thousands of records and the match will be on the Address column

I thought to use:

But it seems the nesting is not looking at the row to be updated…rather its picking one record and updating all records with the same streetnumber?

Advertisement

Answer

This should work:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement