io non ho capito bene

ma a te serve una cosa cosi ? ??

select * from tab_1,tab_2 where id.tab_1 = id.tab_2