BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: Aephongpatk ที่ ตุลาคม 29, 2020, 08:43:37 AM

หัวข้อ: อยากได้ sql ดึงข้อมูลผู้เสียชีวิตด้วยโรคมะเร็ง
เริ่มหัวข้อโดย: Aephongpatk ที่ ตุลาคม 29, 2020, 08:43:37 AM
รบกวนพี่ช่วยด้วยครับบบบบ.... ขอบคุณครับ
หัวข้อ: Re: อยากได้ sql ดึงข้อมูลผู้เสียชีวิตด้วยโรคมะเร็ง
เริ่มหัวข้อโดย: เกื้อกูล ครับ.. ที่ ตุลาคม 30, 2020, 19:39:02 PM
รบกวนพี่ช่วยด้วยครับบบบบ.... ขอบคุณครับ
ลอง  select hn,cid,death_date,death_diag_1,death_diag_2,death_diag_3,death_cause_text,death_place ,death_cert_doctor from death where death_date between'2019-10-01' and '2020-09-30' and( death_diag_1 between 'C00' and 'C99'  or death_diag_2 between 'C00' and 'C99' or death_diag_3 between 'C00' and 'C99') ประมาณนี้ครับ...