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.

Databases

Karlijn Willems
Karlijn Willems
9,961 Points

I can't seem to figure this one out... where do I put the DATE() function?

I tried several columns as a parameter in de COUNT() function and tried a few different formats of the status... Could anyone please help me further here on how I have to tell the database I want the count of the orders that are shipped today?

2 Answers

Steven Parker
Steven Parker
216,000 Points

You forgot to provide a link to the course page, but just from memory I seem to recall that one of the fields was something like "ordered_on", which you would compare with today's date in the WHERE clause. And you would also need to check that the "status" was "shipped".

Karlijn Willems
Karlijn Willems
9,961 Points

Thank you for your respond. It work this way... I thought it was looking for the status dat it was shipped today, so not ordered_on today... anyways, thnx! :)

Steven Parker
Steven Parker
216,000 Points

That was my first thought too, but the it wasn't part of the data. The instructions could possibly be re-worded to be a bit more clear.