Skip to content
Advertisement

How to copy data from one column to another?

I am trying to add Property Address in columns that have a missing value.

I use the below to identify common parcel IDs with corresponding property address since the same parcelIDs have the same PropertyAddress as well.

I get this result: enter image description here

Now I want to add the data in column IFNULL(n.PropertyAddress,n2.PropertyAddress) to the missing PropertyAddress cells using the below:

However, I get this result, where all the PropertyAddress are the same for all rows. enter image description here

How do I add the correct PropertyAddress to the

Advertisement

Answer

With your code in the UPDATE statement you are actually joining twice the table Nashnew.
Also you should check if the column PropertyAddress of the updated copy of Nashnew is null or empty:

Change to this:

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