select * from rea rea left outer join tle tle on tle.tle_in_1 = rea.rea_ina_cil and tle.tle_lg_1 = rea.rea_sklad_cil