BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: sahavej_pct ที่ มีนาคม 21, 2016, 15:37:46 PM
-
รบกวนขอความช่วยเหลือ อ.ท่านใดมีรายงานการสั่งเอ็กซเรย์ของแพทย์บ้างครับ ตามรูปภาพ หรือแบบใกล้เคียงก็ได้ครับ...ขอบคุณครับ
-
select d.name,i.xray_items_name,count(x.vn) as cc
from xray_report x
left outer join doctor d on d.code=x.request_doctor
left outer join xray_items i on i.xray_items_code=x.xray_items_code
where x.request_date between "2016-03-01" and "2016-03-31"
group by x.request_doctor,x.xray_items_code
order by x.request_doctor,cc desc
-
ขอบพระคุณมากๆๆๆครับ :) :)