-- 受注
select
to_char(date_trunc('month', create_date), 'YYYY-MM'),
count(customer_id)
from
dtb_order
group by
date_trunc('month', create_date);
-- 試着予約
select
to_char(date_trunc('month', create_date), 'YYYY-MM'),
count(customer_id)
from
dtb_fitting
group by
date_trunc('month', create_date);