351
แจ้งปัญหา / ขอความช่วยเหลือ / Re: ปัญหาการ replication ครับ
« เมื่อ: ธันวาคม 06, 2007, 15:31:00 PM »
ตอนนี้ up เป็น version 3.50.12.1 แล้ว ก็ยังพบปัญหานี่อยู่ครับ
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.
ของพี่เข้าก็ใช้ดีอยู่แล้วทำไมต้องเปลียนครับ
ลองลงตัว full 3.50.8.22 ใหม่แล้วสั่ง replication ใหม่ดูครับ
ที่ผมเจอคือพยาบาลซักประวัติว่าแพ้ยาแต่ห้องยาไม่ได้ลงว่าแพ้ยาเพราะไม่ได้แพ้ยาจริงๆมันจะขึ้นอาการอย่างนี้ครับ
ลองอันนี้ดูครับ
ลองเปลี่ยนคำสั่ง sql เป็น
select
concat(pt.pname,pt.fname," ",pt.lname) as fullname,ov.vn,
concat(pt.addrpart," ËÁÙè ",pt.moopart," µ.",t3.name," Í.",t2.name," ¨.",t1.name) as fulladdressname,
op.an,icode,qty,year(rxdate)-year(birthday) as age,rxdate,order_no
from ovst ov
left outer join patient pt on pt.hn=ov.hn
left outer join thaiaddress t1 on t1.chwpart=pt.chwpart and
t1.amppart="00" and t1.tmbpart="00"
left outer join thaiaddress t2 on t2.chwpart=pt.chwpart and
t2.amppart=pt.amppart and t2.tmbpart="00"
left outer join thaiaddress t3 on t3.chwpart=pt.chwpart and
t3.amppart=pt.amppart and t3.tmbpart=pt.tmbpart
left outer join opitemrece op on op.hn=ov.hn
where op.rxdate between "2007-06-01" and "2007-07-31" and op.icode ="1000196"
group by rxtime
order by rxdate
ดูนะครับ