1.
select
pcucode,typesex,age,
count
(age)
from
ชื่อตาราง
2.
where
age = 1
and
typesex = 1
and
pcucode= รหัสหมู่บ้าน
group
by
pcucode,typesex,age
3.
union
4.
select
pcucode,typesex,age,
count
(age)
from
ชื่อตาราง
5.
where
age = 1
and
typesex = 2
and
pcucode= รหัสหมู่บ้าน
group
by
pcucode,typesex,age