select distinct your_value from (
select your_value from table_1
union
select your_value from table_2
union
select your_value from table_3
union
select your_value from table_4
) x;
select t1.name, t2.name
from table_1 t1, table_2 t2
where t1.id = t2.id;