UnsolvedCoding
Technical User
I am working on a project where a update statement is used in a stored procedure. The statement itself isn't that difficult its simply updating a sheet with an inner join to get the correct informtion.
However, I keep getting an error saying that the column I want to update already exists which it does.
Code -
Update Month_end_master
set Shipping_NBR = T.Invoice_Nbr
from Shipping C
inner join Test_DB.dbo.Tracking T
on C.Shipping_NBR =(right ('0000' + T.Lading_nbr, 4))
And C.Shipping_NBR = T.Invoice_Nbr
where c.[Rollback] = 0
and c.Invoice_NBR is null
What am I missing?
However, I keep getting an error saying that the column I want to update already exists which it does.
Code -
Update Month_end_master
set Shipping_NBR = T.Invoice_Nbr
from Shipping C
inner join Test_DB.dbo.Tracking T
on C.Shipping_NBR =(right ('0000' + T.Lading_nbr, 4))
And C.Shipping_NBR = T.Invoice_Nbr
where c.[Rollback] = 0
and c.Invoice_NBR is null
What am I missing?