A
Alex
I have two tables with the same 4 columns. The rest of the columns are
different. Table2 can have more rows than Table1. I'd like to get these 4
fields updated in Table1 from Table2 and if Table2 has more rows than Table1
that those rows would be included in Table1 with 0 or Null value in the rest
of fields.
I'm trying to do the following:
UPDATE Table1 RIGHT JOIN Table2 ON Table2 .Product_ID = Table1.Product_ID
SET Table1.Product_ID = Table2.[Product_ID], Table1.Description =
Table2.[Description], Table1.ProdCateg_Code = Table2.[ProdCateg_Code],
Table1.ProdCateg = Table2.ProdCateg], Table1.FY = Table2.[AdjY1F];
I'm getting all rows from the Table2 but everything is empty.
Could anybody clarify it.
Thanks
different. Table2 can have more rows than Table1. I'd like to get these 4
fields updated in Table1 from Table2 and if Table2 has more rows than Table1
that those rows would be included in Table1 with 0 or Null value in the rest
of fields.
I'm trying to do the following:
UPDATE Table1 RIGHT JOIN Table2 ON Table2 .Product_ID = Table1.Product_ID
SET Table1.Product_ID = Table2.[Product_ID], Table1.Description =
Table2.[Description], Table1.ProdCateg_Code = Table2.[ProdCateg_Code],
Table1.ProdCateg = Table2.ProdCateg], Table1.FY = Table2.[AdjY1F];
I'm getting all rows from the Table2 but everything is empty.
Could anybody clarify it.
Thanks