Hi experts,
I'm trying to update Zip so that it only contains the left-most 5 characters.
The code below changed all zip to null values.
Do I need to use a JOIN?
UPDATE MyTable
SET Zip = (SELECT LEFT(Zip, 5)
WHERE Country = 'UNITED SATES');
Thanks