BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: Bluebird ที่ มกราคม 15, 2009, 14:21:05 PM
-
อยากทราบยอดจำนวนผู้สูงอายุ มารับบริการในปีงบประมาณ 2551 ว่ามีผู้สูงอายุมารับบริการทั้งหมดกี่คน
และมารับบริการในปี 2551 กี่ครั้ง
-
select count(distinct hn) as person_count,count(vn) as visit_count
from vn_stat
where vstdate between 'xxxx' and 'xxxx'
and age_y > 50
-
สูงอายุ นับอายุเท่าไรขึ้นไปครับ
60 ปี หรือเปล่าครับ :D ;) :D
หรือสิทธิ ครับ
-
select count(distinct hn) as person_count,count(vn) as visit_count
from vn_stat
where vstdate between 'xxxx' and 'xxxx'
and age_y > 50
อ๊ะ...อ๊ะ...สูงอายุนี่น่าจะเป็น 60 ปีขึ้นไปนะครับ อย่างที่ท่านกิจว่าแหละครับ
สูงอายุ นับอายุเท่าไรขึ้นไปครับ
60 ปี หรือเปล่าครับ :D ;) :D
หรือสิทธิ ครับ
แก้เป็น age_y >= 60 หรือเปล่าครับ