select * from ZOM_ODB_ZME zom_odb_zme left outer join Z6A z6a on z6a.idpk = zom_odb_zme.cis_z6a_stary