I\'m trying to select the order total sum ($) and invoice count over a 5 day period in a single query. I can\'t seem to get this to happen though. The current query I have
WHERE created BETWEEN NOW() AND DATE_ADD(NOW(), INTERVAL 5 DAY)
This example will get you records (assuming any exist for today, including time) for between today and days into the future. Look at DATE_SUB if you want to go into the past.