101
นอกเรื่อง / Re: ส่งกำลังใจไปช่วย ร.พ.กำแพงเพชร
« เมื่อ: ตุลาคม 27, 2011, 15:05:17 PM »
เอาใจช่วยด้วยคนครับ
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
เคยเจอแต่กรณี Admit ย้อนหลัง แล้ววันนั้นผู้ป่วยไม่ได้ visit จริงค่ะ
เพิ่มคำสั่งแล้วขึ้น error ดังรูป อ่ะครับท่าน แล้วผมเพิ่มคนไข้ใน ลงทะเบียนผู้ป่วยใหม่ก่อนแล้วด้วยอ่ะครับ
คำสั่งผิดครับ..ลองเอาแบบน้อย ๆวันก่อน
SELECT cardno,count(cardno) FROM ptcardno
where hn not in (select distinct(hn) from vn_stat where vstdate between"2010-10-01" and"2011-09-15") GROUP BY cardno Having COUNT(cardno) > 1