select * from {表2} as a left join {表1} as b on a.送货日期>=b.最小日期 and a.送货日期<=b.最大日期 where 最大日期 is not null