BMS-HOSxP Community
HOSxP => การเขียน SQL Script => ข้อความที่เริ่มโดย: piyarat ที่ ธันวาคม 09, 2020, 10:23:28 AM
-
จากคำสั่งดังกล่าวต้องการให้แสดงผลเป็นเดือนโดยไม่กำหนด between '2020-12-01' and '2020-12-31' ค่ะ
เราต้องใช้คำสั่งอะไรแทนค่ะ เพื่อใช้กับ HIS Line Notify โปรแกรมแจ้งเตือนผ่าน Lin Notify ค่ะ มือใหม่หัดเขียน
select count(an) as mm from an_stat where regdate between '2020-12-01' and '2020-12-31' and dchdate is null
-
select count(*) cc from an_stat where year(regdtae)=2020 and month(regdate)=10 and dchdate is null
-
ขอบคุณค่ะ