ผู้เขียน หัวข้อ: รายงาน revisit 24 hr. ที่ er แต่เจอปัญหาขอคำแนะนำด้วยคับ  (อ่าน 5469 ครั้ง)

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

ออฟไลน์ yokyai

  • Hero Member
  • *****
  • กระทู้: 1,462
  • Respect: +9
    • ดูรายละเอียด
ปัญหาตามรูปเลยคับ ต้องการนับจำนวนคนคับ
Sakaowrat Choocherd(Administrator) Information Technologist
Bangyai Hospital(30 beds)
HOSxP = 16_May_2008
Master and Slave : DELL-R730 Server Intel Xeon 8Core(2Units)
,Ram64 GB,HDD600(10k)x4,Raid5,CentOS 7.0 64 bit
,MySQL 10.1.10-MariaDB
(3 March 2016) With BMSxTraBackupGUI

ออฟไลน์ เกื้อกูล ครับ..

  • Hero Member
  • *****
  • กระทู้: 12,611
  • Respect: +169
    • ดูรายละเอียด
    • โรงพยาบาลปากท่อ
Re: รายงาน revisit 24 hr. ที่ er แต่เจอปัญหาขอคำแนะนำด้วยคับ
« ตอบกลับ #1 เมื่อ: กันยายน 05, 2010, 23:21:27 PM »
0
select count(hn) as ptcount,hn,pdx
 from vn_stat
where vn in
( select vn from er_regist
   where vstdate between '2010-08-01' and '2010-08-31' )
and lastvisit_hour<=24
and pdx not like'Z%'
group by hn
having count(้ืhn) > 1
order by vstdate,hn
« แก้ไขครั้งสุดท้าย: กันยายน 05, 2010, 23:23:53 PM โดย Kuakool.. »
Implement  HOSxP  Start 2548 ---> NOW!
Station : 130 Client   V.3 Version  3.67.1.XX
Server  : CENTOS  +MySQL maria 10.x.x