BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: James011 ที่ พฤษภาคม 20, 2011, 15:32:09 PM
-
;D ;D ;D ;D [LAB]-รายงานสรุปผลการปฏิบัติงานแผนกชันสูตร(Subreport)
;D ;D ;D ให้ทดสอบก่อน ใครอยากเพิ่มอะไรบอกได้ครับ
-
เทพจริงๆๆ ;D ;D ;D
-
แจ่ม ๆ
-
ผมว่า ChangeDBPipeLineLink2SQL ในส่วนของ OPD น่าจะแก้ไขคำสั่งนับจาก ovst น่าจะถูกต้องนะครับ ตามนี้
select lh.doctor_code,(select name from doctor where code=lh.doctor_code) doctor_name
,count(i.vn) as vn_count,count(distinct(i.hn)) as hn_count
from ovst i
inner join lab_head lh on lh.vn=i.vn
where i.vstdate between "2011-01-01" and "2011-01-31"
group by lh.doctor_code
-
เทพจริงท่าน..