Sorry für den kurzen Mißgriff jetzt, plötzlich war das Formular weg ???
Also:
Als erstes: Tabellen verknüpfen in etwa so:
select * from table_1 as a,table_2 as b,table_3 as c
where a.id_tab2 = b.id and b.id_tab3 = c.id
and a.id = '1' and b.id = '1' and c.id='1'
Wenn Du vorher weißt, daß in table_3 manchmal nichts passendes findest, dann mit einem OUTER JOIN zwischen b und c.
Ansonsten empfehle ich mal Grundlagen von SQL zu lesen.
Falls Du evtl. Detailfragen hast, bräuchte ich eine Info, welche DB Du benutzt.
Gruß Frank