Vazba
SQL vazba z tabulky zh na tabulku ag
select *
from zh zh
left outer join ag ag on ag.ag_aa = zh.zh_aa and ag.ag_anr = zh.zh_anr and ag.ag_az = zh.zh_az and ag.ag_pos = zh.zh_ag
select *
from zh zh
left outer join ag ag on ag.ag_aa = zh.zh_aa and ag.ag_anr = zh.zh_anr and ag.ag_az = zh.zh_az and ag.ag_pos = zh.zh_ag