I need to update all the records in the Client table if address_1 is blank, but address_2 is not. In those cases I want to move address_2 into address_1. Here is my query so far:
UPDATE Client SET Address_1 = 'address1', address_2 = ''
WHERE client_id = 'client_id'
But instead of passing in client_id, I want to update every record.
wherecriteria perhaps -- that will update the entire table? What exactly are you trying to do?Update Client Set Address_1 = address_2, address_2 = '' where Address_1 = '' and address_2 <> ''