I have a address column has values + in postal code. But + could be anywhere in the column (Street name, city) but I need to identity only postal code in the address with another column called Postal_Code and remove +.
It is going to be hard sql query to identify
+in postal code and remove but don't know how to do?
I already remove + from Postal_Code column.
Table Example
POSTAL_CODE FORMATTED_ADDRESS
T2E 8N6 #6, 1435-40th Ave NE #6 Calgary AB T2E+8N6 Canada
23401 9 Abolaji Street Mafoluku +23401 Oshodi Lagos State Nigeria
234-01 6 Force Road, Square Race Course +234-01 Lagos, Nigeria Lagos State
86 163453 Daqing Oilfield Co.Ltd Ranghulu 86+163453 Daqing CHN
select * from my_table where FORMATTED_ADDRESS like '%+' + POSTAL_CODE + '%?+if it's in front of the matching POSTAL_CODE? Or just SELECT them without the+?