.. อันดับแรกนะครับ ...
![ยิ้มกว้างๆ :D](https://hosxp.net/smf2/Smileys/default/cheesy.gif)
...
คำสั่งจำนวนผู้ป่วยต้องเป็น
select count(distinct hn) as cc from vn_stat
where vstdate between "2009-10-01" and "2010-09-30"
and pdx in ('J441','J449') and ((op0="9394") or (op1="9394")
or (op2="9394") or (op3="9394") or (op4="9394") or (op5="9394"))
ค่าใช้จ่ายรวมต้องเป็น
select sum(income) as cc from vn_stat
where vstdate between "2009-10-01" and "2010-09-30"
and pdx in ('J441','J449') and ((op0="9394") or (op1="9394")
or (op2="9394") or (op3="9394") or (op4="9394") or (op5="9394"))