Vazba
SQL vazba z tabulky J2STA0 na tabulku ODDOKR
select *
from J2STA0 j2sta0
left outer join ODDOKR oddokr on oddokr.idpk = j2sta0.doklad