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 trialSylvester Greenwell
5,749 PointsMy 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
1 Answer
Rune Andreas Nielsen
5,354 PointsI 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'
Sylvester Greenwell
5,749 PointsThis 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!
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsI logged your question under "Databases".