select p.pname,p.fname,p.lname,o.age_y,d.bw,d.height,d.bps,d.bpd,d.bmi,d.waist,b.lab_items_name_ref,b.lab_order_result,concat(pname,fname," ",lname) as fullname
from vn_stat o
left outer join patient p on p.hn = o.hn
left outer join opdscreen d on d.vn = o.vn
left outer join lab_head a on a.vn = d.vn
left outer join lab_order b on b.lab_order_number = a.lab_order_number
where o.vstdate between '2009-07-20' and '2009-07-28' and p.work_addr= "รพ.ระแงะ" and o.pdx="z000"
order by o.vstdate