Hello all,
I'm not sure how to update table form same table. I've got this code so far, which doesn't work. :-/
Any ideas on that one?
Thank you :o)
I'm not sure how to update table form same table. I've got this code so far, which doesn't work. :-/
Code:
UPDATE WIP SET Status = WIP2.Status FROM WorkInProgress AS WIP JOIN WorkInProgress AS WIP2 ON WIP.LOAMID = WIP2.LOAMID WHERE WIP.wipDate = LastDate AND WIP2.wipDate = DateBeforeLastOne AND WIP.Status IS NULL;
Thank you :o)
Comment