แบบนี้หรือเปล่าครับ
select v.vstdate,v.hn,concat(p.pname,p.fname,' ',p.lname) as tname,v.age_y,v.pdx from vn_stat v
left outer join patient p on p.hn = v.hn
where v.vstdate between '2007-10-01' and '2008-03-31'
and v.pdx between 'i200' and 'i209'
or v.dx0 between 'i200' and 'i209'
or v.dx1 between 'i200' and 'i209'
or v.dx2 between 'i200' and 'i209'
or v.dx3 between 'i200' and 'i209'
or v.dx4 between 'i200' and 'i209'
or v.dx5 between 'i200' and 'i209'
order by v.pdx,v.vstdate