select a.entry_date,o.name,a.hn,a.vn,concat(p.pname,p.fname," ",p.lname) as
ptname,c.universal_item_name,b.universal_item_value_text,s.hn,concat(p1.pname,p1.fname," ",p1.lname) as pt1name
from universal_head a
left outer join universal_detail b on b.universal_head_id=a.universal_head_id
left outer join universal_item c on b.universal_item_id=c.universal_item_id
left outer join patient p on a.hn=p.hn
left outer join opduser o on a.staff=o.loginname
left outer join an_stat s on s.an=a.vn
left outer join patient p1 on s.hn=p1.hn
where a.entry_date between '2009-09-01' and '2009-09-30' and universal_form_id like '4' and b.universal_item_id=124
ลองนำไปประยุกต์นะครับ