Vazba
SQL vazba z tabulky T0MED na tabulku TABMG
select *
from T0MED t0med
inner join TABMG tabmg on tabmg.idpk = t0med.idpk_kod