ประมาณนี้ได้ไหมครับ
select v.pdx,count(v.pdx) as pdx_count, i.name as icdname
from vn_stat v
left outer join icd101 i on i.code=v.pdx
where (v.vstdate between "2008-02-01" and "2008-02-29") and v.hospsub = "รหัสโรงพยาบาล" and v.pdx is not null and v.pdx<>""
group by v.pdx,i.name
order by pdx_count desc
limit 10