BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: sarawut_oat ที่ สิงหาคม 24, 2010, 14:54:25 PM
-
ใครมีรายงานผู้ป่วยมารับบริการในวันหยุดบ้างคับ
-
ลองหาจาก select concat(pname,fname," ",lname) as pat,v.age_y,v.age_m,v.age_d,v.pdx,v.income from vn_stat v,patient p where
v.hn=p.hn and v.vstdate in (select holiday_date from holiday) and v.vstdate between '2009-10-01' and '2010-08-31' ประมาณนี้ครับ อย่าลืม ท่านต้องมีข้อมูลในตาราง holiday ด้วยครับ