Is there a way to achieve the following union query using only one query using IN clause with multiple columns?
Instead of using
select *
from table_a
where field_a in (select field_1 from table_b)
union
select *
from table_a
where field_a in (select field_2 from table_b);
I want to create something that will look like the following:
select *
from table_a
where field_a in (select field_1,field_2 from table_b) ;