Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTodd Hamblen
4,523 PointsWhat type system is this supposed to be ran on?
I’ve tried currdate(), curdate(), adddate(), subdate(), and always get a message that there is something is wrong with my statement or that I got it wrong because it’s expecting 14 as the answer (although I have no idea what it’s getting since there isn’t a result set).
1 Answer
Ave Nurme
20,907 PointsHi Todd
I think based on the videos here you need to do this:
SELECT COUNT(*) AS ordered_yesterday_and_shipped FROM orders WHERE ordered_on = DATE("now", "-1 day") AND status = "shipped";