I feel like I'm missing something simple here...
Table A(Name, Value)
ABC  123
DEF  456
XYZ  789
NON  111
Table B(Name1, Name2, Color)
ABC  NULL  Red
NULL DEF   Blue
SQL query
select * 
from TableA A
left join TableB B on A.name = B.name1 or A.name = B.name2
Doing this will only return
A.name, a.value, b.color
ABC 123 Red
DEF 456 Blue
I need it to return
A.name, a.value, b.color
ABC 123 Red
DEF 456 Blue
XYZ 789 NULL
NON 111 NULL
It's excluding rows in the left table.
 
     
     
     
     
    