select count(distinct(v.hn)) as cc,count(v.hn) as cc1,pt.moopart
from vn_stat v
left outer join patient pt on pt.hn=v.hn
where v.vstdate between '2008-04-02' and '2008-04-30' and v.count_in_day=0
and pt.tmbpart=04
group by pt.moopart
คุณน้อง แบบนี้พอได้มั้ยครับ