ผู้เขียน หัวข้อ: ช่วยผมแก้รายงานตัวนี้ให้แสดงเฉพาะข้อมูลที่เป็นเวชภันฑ์ครับ  (อ่าน 1206 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ sahavej_pct

  • Jr. Member
  • **
  • กระทู้: 75
  • ศิวกรณ์ เนียมน้อย
  • Respect: 0
    • ดูรายละเอียด
    • www.sahavej.com
ช่วยผมแก้รายงานตัวนี้ให้แสดงเฉพาะข้อมูลที่เป็นเวชภันฑ์เท่านั้น ไม่ต้องแสดงชื่อยาครับ...ขอบคุณครับ
::SAHAVEJ PHICHIT HOSPITAL::
 ขึ้นระบบเมื่อ 1 ตุลาคม 2552
SERVER :   Linux Centos 5.3 X86 64B IT Ram 4 G
BackUp1 :  Linux Centos 5.3 X86 64B IT Ram 4 G
BackUp2 :  Linux Centos 5.3 X86 64B IT Ram 2 G
HOSxP Version : 3.54.7.20
MySQL Version : 5.1.30
Client : Windows Xp & Windows Vista  30 เครื่อง
--

ออฟไลน์ woravet

  • Sr. Member
  • ****
  • กระทู้: 409
  • Respect: +12
    • ดูรายละเอียด
select oo.icode,concat(d.name," ", d.unit) name
,sum(oo.qty) qty,sum(oo.sum_price) sum_price
from opitemrece oo
join nondrugitems d on oo.icode=d.icode
left join income inc on inc.income=oo.income
where oo.vstdate between '2015-1-1' and '2015-1-31'
and inc.income_group=12
group by d.icode
order by sum_price desc
ตาราง nondrugitems ของผมไม่มีฟิล์ด strength,units
รพ.บึงสามัคคี จ.กำแพงเพชร
*********************
อ.สุชัยและคณะ ขึ้นระบบ 29 ตค.49(Linux+Fedara 5)
*********************
ปัจจุบัน
HOSxP version 3.53.4.27
Server:Windows XP SP2,MySQL 5
Client ประมาณ 15 เครื่อง