dovresti avere le 2 tabelle con lo stesso valore in un campo ad esempio id di tab1 e id di tab2
cosi potresti fare: select nome from tab2 left join tab1 on id.tab1=id.tab2