hi,
we sell event tickets and i am having a bit of a slow moment here.
i'd like to get all orders which were made within 3 days of the event.
currently i have:
select sum(quantity) from orders where
and date_purchase >= DATE(event_date - INTERVAL 3 DAY);
this returns a plausible result (lol), but i've never been good with date interval and wondered if someone could confirm?
many thanks