This repository was archived by the owner on Apr 29, 2022. It is now read-only.
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
Create a stats table which shows the country distribution of orders #1318
Open
Description
Here's the SQL for the query:
-- Ticket distribution of orders for EP2020
select assopy_order.country_id, count(*) as count from assopy_order
left join assopy_orderitem on assopy_order.id = assopy_orderitem.order_id
where created > '2020-01-01' and created < '2020-12-31' and complete = 1 and assopy_orderitem.code like 'T__'
group by assopy_order.country_id
order by count desc;
Would be good to add this to the attendee stats page we already have.