Hi,
It's been quite some time since I was in amongst code, and am wondering how to use 1=1 logic in order to relax a join condition.
Can you advise if this syntax is correct?
) ON table1.id_number = table2.id_number
It's been quite some time since I was in amongst code, and am wondering how to use 1=1 logic in order to relax a join condition.
Can you advise if this syntax is correct?
) ON table1.id_number = table2.id_number
AND (table3.currency = table2.currency OR 1=1)
which is intending to take a currency match if there is one.