I have two tables
Table1: Table2:
ID: Type: Amount: ID: Amount:
165 Red 300 188 425
167 Red 100 189 500
168 Blue 250 222 129
188 Grey NULL 333 247
189 Grey NULL 369 328
I am trying to replace the null values from table 1 by joining on table 2.
My code results in two amount columns.
LEFT JOIN table2
ON table2.pk = table1.pk
AND table1.Type IS NULL