日付から年を抽出し、それでグループ化します
select year(date) as year,
count(customer_id) as customers
from your_table
group by year
order by year asc
日付から年を抽出し、それでグループ化します
select year(date) as year,
count(customer_id) as customers
from your_table
group by year
order by year asc