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 trialShain Jones
1,315 Pointsthe code challenge is asking if I "selected results as my table." My code is SELECT * FROM results WHERE away_team<10;
Pretty sure my code is correct, could there be an error in the challenge software?
3 Answers
KRIS NIKOLAISEN
54,972 PointsYour WHERE clause is comparing a team name to a number. You should be checking the score.
Alexander Davison
65,469 PointsInstead of checking whether away_team
is less than 10
, check if away_score
is less than 10
. away_team
is the name of the away team, but is not the score.
Caroline Forslund
Front End Web Development Techdegree Graduate 36,096 PointsHi Shain, The first half is correct and you're almost there. For the other half of the query you're now searching for away teams with scores below 10. What you want to do to pass the challenge is to select all from the results table (like you do), but then you want to find the home teams with scores bigger than 12.