select i.an, i.order_no, i1.regdate, i1.dchdate
from ipt_order_no i
left outer join opitemrece o on i.an = o.an and i.order_no=o.order_no
join ipt i1 on i.an=i1.an
where o.order_no is null and i.order_type="TRx" and i1.regdate between "2011-12-01" and "2011-12-29"
order by i1.an