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

Development Tools

SQL Challenge

Hello Treehouse!

I am having a hard time with this part of the SQL challenge.

enter image description here

I wish that there were hints on this challenges. If someone could help me out on what to do to filter the results, I will appreciate it a lot.

Thanks!

2 Answers

Looks good! But don't forget to include the table that you're selecting the columns FROM. :)

Worked perfectly, thanks!

Hey, Alejandro!

You'll want to try using the HAVING clause at the end of your statement to select only those reviews with an AVG(score) <= 2.

I tried it like this but it wont work..

SELECT AVG(score) AS average GROUP BY movie_id HAVING AVG(score) <= 2