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 trialJackson Hyland
4,920 PointsWhat am i doing wrong? please help
I'm doing the SQL Basics challenge "filtering by comparing values". task two is pretty much the same as task one but i keep getting it wrong.. Bummer! Did you select from the results
table?
i MUST be missing something unless it's bugged out? any advice would be great thanks.
Zachary Wheeler
1,157 PointsSELECT * FROM results WHERE home_team = "Hessle" AND home_score > 18;
I am not sure how to fix this. It's giving me the same error you had, but i'm not sure which part is wrong.
1 Answer
Steven Parker
231,271 PointsCongrats on resolving your issue!
And for Zachary Wheeler:
You're on a different challenge, but yours says, "Find all the matches in the results table where "Hessle" was playing away as the away team and their score was above 18 points."
So your query is looking at the wrong columns. You want the "away_...
" columns instead of the "home_...
" columns.
Jackson Hyland
4,920 PointsJackson Hyland
4,920 Pointsnever mind, i was mislead by the "Did you select from the results table?". i actually was comparing wrong value.