I am trying to change the zip code information in our SQL2000 DB, currently we are storing 10 digit zip codes. I am able to isolate the offending zip codes and change them to 5 digits but how do I do an update the table?
select id_acc, substring(c_zip, 1, 5) as c_zip
--into NEW_t_av_contact
from t_av_contact
where len(c_zip) > 5 and
c_country = 421
select id_acc, substring(c_zip, 1, 5) as c_zip
--into NEW_t_av_contact
from t_av_contact
where len(c_zip) > 5 and
c_country = 421