พฤษภาคม 2024
จ. อ. พ. พฤ. ศ. ส. อา.
« มี.ค.    
 12345
6789101112
13141516171819
20212223242526
2728293031  
พฤษภาคม 2024
จ. อ. พ. พฤ. ศ. ส. อา.
« มี.ค.    
 12345
6789101112
13141516171819
20212223242526
2728293031  

query รายงานแผนไทย

ยาประเภท ED

select o.*,s.*,p.*,ps.*
from opitemrece o
left outer join drugitems s on s.icode=o.icode
left outer join pttype p on p.pttype=o.pttype
left outer join pttype_spp ps on ps.pttype_spp_id=p.pttype_spp_id
where o.rxdate between ‘2013-03-01’ and ‘2013-05-31’
and s.did like “4%” and p.pttype_spp_id in(‘1′,’2′,’3′,’4′,’5′,’6’) and s.drugaccount=”¡”

 

ทุึกสิทธิการรักษา

select count(distinct vn) as cc
from opitemrece o
left outer join drugitems s on s.icode=o.icode
left outer join pttype p on p.pttype=o.pttype
left outer join pttype_spp ps on ps.pttype_spp_id=p.pttype_spp_id
where o.rxdate between ‘2013-03-01’and ‘2013-05-31’
and s.did like”4%” and p.pttype_spp_id in(‘1′,’2′,’3′,’4′,’5′,’6’) and s.drugaccount=”¡”

ใส่ความเห็น