I have a table with multiple fields for address, such as address_line_1, address_line_2, etc.
Is there any way that I can use a WHERE clause across multiple fields at once, without having to use an OR/AND statement?
For example:
SELECT *
FROM FIN_LIVE.CUSTOMER_ADDRESSES
WHERE SYS_ADDRESS_1, SYS_ADDRESS_2, SYS_ADDRESS_3 = 'data'
Pretty sure you’ll have to use AND/OR
HOWEVER, maybe this is a sign to change your data structure. Are you saying that there are 3 addresses, and any one of them could be 123 Main Street?
In that case, perhaps you need to pull address data out to a separate table.