select vn.vstdate,concat(pt.pname,fname,' ',lname) as ptname,pt.cid,vn.pttype,ptt.name,
vn.pdx,icd.name,vn.income,ost.name
from vn_stat vn
left outer join patient pt on pt.hn=vn.hn
left outer join pttype ptt on ptt.pttype=vn.pttype
left outer join icd101 icd on icd.code=vn.pdx
left outer join ovst ovs on ovs.vn=vn.vn
left outer join ovstost ost on ost.ovstost=ovs.ovstost
where vn.vstdate between '2010-11-01' and '2010-11-01'
เพิ่ม Field สุดท้ายให้แล้วครับเพิ่งหาเจอ