Hi,
Can you try this and check if this helps.
select TABLE1.*
from work_db.TABLE11 XLA
left join work_db.TABLE2 A
on TABLE1.COLUMN1 = A.COLUMN1
and TABLE1.COLUMN2 = A.COLUMN2
left join work_db.TABLE2 B
on TABLE1.COLUMN3 = B.COLUMN3
where A.COLUMN1 is not null or B.COLUMN3 is not null
Thanks.
Hi,
Can you try this and check if this helps.
select TABLE1.*
from work_db.TABLE11 XLA
left join work_db.TABLE2 A
on TABLE1.COLUMN1 = A.COLUMN1
and TABLE1.COLUMN2 = A.COLUMN2
left join work_db.TABLE2 B
on TABLE1.COLUMN3 = B.COLUMN3
where A.COLUMN1 is not null or B.COLUMN3 is not null
Thanks.