Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Alessandro Pappacena
2,589 PointsWrong count calculation
Hi!
I just miss two test to complete the course, unfortunately I have been stuck to this question a long time without getting what I do wrong
my formula is select count(*) as "ordered_yesterday_and_shipped" from orders where status = "shipped" and date("2021-05-23", "-1 day") When I tried it even on the SQL playground is giving me back 149 results, seems to me I am doing something wrong with the date, even I watched the video times and times I cannot find what I did wrong!
1 Answer

Kris Hatch-McCarter
Full Stack JavaScript Techdegree Student 23,866 PointsYou are so close! Try using 'now' instead of the exact date. Also, you need to name your ordered_on column and set that equal to the date function.