select h.hoscode hospcode,cast(h.hosname as char(200)) hospname,count(*) target,sum(result="Y") result,sum(result="Y")/count(*)*100 percent from chospital_amp h left join ( select p.hospcode,p.cid,p.hn,p.pid,concat(p.name," ",p.lname) ptname ,p.birth ,group_concat(distinct if(a.vaccinetype regexp "061|073|074|076",a.vaccinetype,null) order by a.vaccinetype) vaccinetype ,group_concat(distinct if(a.vaccinetype regexp "061|073|074|076","Y",null)) result from person p left join epi a on a.pid=p.pid and a.hospcode=p.hospcode where p.birth between "2014-04-01" and "2015-03-31" and p.typearea in (1,3) and p.discharge = "9" group by p.hospcode,p.pid ) a on a.hospcode=h.hoscode group by a.hospcode union select "ภาพรวมทั้งคัพ" as hoscode,"" as hosname,count(*) target,sum(result="Y") result,sum(result="Y")/count(*)*100 percent from chospital_amp h left join ( select p.hospcode,p.cid,p.hn,p.pid,concat(p.name," ",p.lname) ptname ,p.birth ,group_concat(distinct if(a.vaccinetype regexp "061|073|074|076",a.vaccinetype,null) order by a.vaccinetype) vaccinetype ,group_concat(distinct if(a.vaccinetype regexp "061|073|074|076","Y",null)) result from person p left join epi a on a.pid=p.pid and a.hospcode=p.hospcode where p.birth between "2014-04-01" and "2015-03-31" and p.typearea in (1,3) and p.discharge = "9" group by p.hospcode,p.pid ) a on a.hospcode=h.hoscode
แสดง 21 ถึง 25 จาก 25 ผลลัพธ์

ร้อยละของเด็กอายุ 1 ปี ได้รับวัคซีนหัด (ตาก) ปีงบประมาณ 2559

#HOSPCODEสถานบริการ TargetResultPercent
2107731รพ.สต.โป่งหว้า ตำบลห้วยใหญ่474289.36
2207732รพ.สต.ยางลาด ตำบลระวิง222195.45
2307733รพ.สต.ระวิง ตำบลระวิง383694.74
2410727รพ.เพชรบูรณ์19911155.78
25ภาพรวมทั้งคัพ1,5581,27581.84
   1,8641,485