I have an address field that I want to split up to 4 fields. I can split out the 1st part but not sure how to do the rest.
Addresses
3347 E Michelson Dr
140 W 200 N
For Address_1, I used "substr(ADDRESS,1,(instr(ADDRESS,' ')) - 1)
Address_1, Address_2, Address_3, Address_4
3347, E, Michelson, Dr
140, W, 200 S
I only want Address_4 if the last part of the address includes certain characters Dr, Ave, Rd, Road, etc. after the last space in the field so that is why Dr is in the Address_4 field for the 1st address and nothing for the 2nd address.
Thank you for any help you can give me.
Addresses
3347 E Michelson Dr
140 W 200 N
For Address_1, I used "substr(ADDRESS,1,(instr(ADDRESS,' ')) - 1)
Address_1, Address_2, Address_3, Address_4
3347, E, Michelson, Dr
140, W, 200 S
I only want Address_4 if the last part of the address includes certain characters Dr, Ave, Rd, Road, etc. after the last space in the field so that is why Dr is in the Address_4 field for the 1st address and nothing for the 2nd address.
Thank you for any help you can give me.