BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: panus_t ที่ ตุลาคม 04, 2011, 15:22:16 PM
-
จากรูปตัวเลข 55 ใช้คำสั่ง SQL ดึงได้ยังไงครับ
??? ???
-
เป็น 2 เงื่อนไข
ตัวแรก คือ จำนวนที่แพทย์ตรวจแล้ว
select count(*) cc from rx_doctor where rx_date=curdate() and doctor=?
ตัวสอง คือ จำนวนรอตรวจห้องนั้น
select count(*) cc from ovst where vstdate=curdate() and cur_dep=?