Skip to content
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
@malemburg

Description

@malemburg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2022goodfirstissueIf you've never contributed to epcon before – this should be easiest to start with

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions