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 trial

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
231,269 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
231,269 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.