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=”¡”
ใส่ความเห็น
คุณต้องเข้าสู่ระบบ เพื่อจะพิมพ์ความเห็น