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

My code doesn't work for SQL Basics "Filtering by Date"

Here is my code. and its bulling the result but its indicating its incorrect and there is no WHERE clause so i am not sure what I'm missing.

SELECT * FROM results WHERE away_team = "Hessle" and played_on >= "2015-10-01"

Also SQL isn't listed yet as a drop down area yet

I logged your question under "Databases". :smile:

1 Answer

Rune Andreas Nielsen
Rune Andreas Nielsen
5,354 Points

I think you need to use ' instead of ".

So it will look like this:

SELECT * FROM results WHERE away_team = 'Hessle' and played_on >= '2015-10-01'

This totally worked, Thank you. It also musta been a bug that was fixed since my posting. I went back and used my original line of code and it also worked, must have been a bug. Either way I was able to complete the portion. Thank You!