พฤศจิกายน 2015
จ. อ. พ. พฤ. ศ. ส. อา.
« ต.ค.   ธ.ค. »
 1
2345678
9101112131415
16171819202122
23242526272829
30  
พฤศจิกายน 2015
จ. อ. พ. พฤ. ศ. ส. อา.
« ต.ค.   ธ.ค. »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

คลังเก็บรายเดือน: พฤศจิกายน 2015

ทะเบียนเครื่องคอมพิวเตอร์ visio

ทะเบียน จำนวนข้อมูลคอมพิวเตอร์ และปริ๊นเตอร์

แบบฟอร์มการเก็บข้อมูล gishealth (http://gishealth.moph.go.th/)

Form INsert Gisheal on web

ข้อมูลก่อน ครั้งสุดท้าย และครั้งสุดท้ายที่มารับบริการ

select v.vstdate,
(select v1.vstdate from vn_stat v1 where v.hn=v1.hn order by v1.vstdate desc limit 1)as
lastvisit,
(select v1.vstdate from vn_stat v1 where v.hn=v1.hn order by v1.vstdate desc limit 1)-
(v.vstdate)as ‘ผ่านมา/วัน’,
v.*
from vn_stat v
where hn=87169
order by vstdate desc
limit 1,1

ตรวจสอบ บริการเยี่ยมบ้าน กิจกรรมซ้ำกันมากกว่า 1 ครั้ง และมีช่องว่าง

select count(o.vn)as JP,v.hn,v.vstdate,o.*
from ovst_community_service o
left join vn_stat v on v.vn=o.vn

group by o.vn, o.ovst_community_service_type_id
having count(o.vn)>1

 

 

select t.ovst_community_service_type_code,ovst_community_service_type_name,v.hn,v.vstdate,o.*
from ovst_community_service o
left join vn_stat v on v.vn=o.vn
left join ovst_community_service_type t on t.ovst_community_service_type_id=o.ovst_community_service_type_id
where vstdate between ‘2015-12-01’ and ‘2015-12-31’