ฝากตรวจ สอบคำสั่งด้วยว่านับจำนวนผิดหรือเปล่า
select vstdate , hn,pdx,dx0,dx1,dx2,dx3,dx4,dx5 from vn_stat vn where vn.vstdate between "2009-03-01" and "2009-03-31"
and vn.pdx ="J029"
or vn.dx0= "J029"
or vn.dx1= "J029"
or vn.dx2= "J029"
or vn.dx3= "J029"
or vn.dx4= "J029"
or vn.dx5= "J029" order by hn ,vstdate