select a.an,a.hn,concat(p.pname,' ',p.fname,' ',p.lname) as name,
th.full_name,a.regdate,a.dchdate,a.admdate,d.name as drug,o.sum_price from an_stat a
left outer join patient p on p.hn = a.hn
left outer join opitemrece o on o.vn = a.vn
left outer join thaiaddress th on th.chwpart = p.chwpart
left outer join drugitems d on d.icode = o.icode
where a.regdate between '2010-07-01' and '2010-07-05'
limit 5
ลองดูครับผม