Wyodrębnij rok od daty i pogrupuj według niego
select year(date) as year,
count(customer_id) as customers
from your_table
group by year
order by year asc
Wyodrębnij rok od daty i pogrupuj według niego
select year(date) as year,
count(customer_id) as customers
from your_table
group by year
order by year asc