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

Christophe Hernke
Christophe Hernke
512 Points

Using the operators >, =, >=

They want me to find all the matches in the results table where "Hessle" was playing away as the away team and their score was above 18. So I type:

SELECT * FROM results WHERE "Hessle" AND away_score > 18;

It states I'm missing the "=" operator so I put ...away_score >= 18; It says its still incorrect and that I'm missing the ">" operator. What am I doing wrong?

1 Answer

Steven Parker
Steven Parker
231,128 Points

The original score comparison looks OK, but it seems that you're missing a comparison with "Hessle". I'm going from memory since you didn't provide a link to the challenge, but perhaps you meant: away_team = "Hessle" ?