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 trialBrad Clarke
Courses Plus Student 3,602 PointsI think your second code challenge question is broken, the avg's I see are all below 0.
I wish I could add screen shots, I have them saved, but here is the code I ran. SELECT AVG(score) AS average FROM reviews GROUP BY movie_id HAVING average > 2;
1 Answer
Antoine Boillot
10,466 PointsHey,
The query above must be failing I suppose. Maybe that's why you're having a weird result.
I guess you are talking about question 2, here is what you should type :
SELECT AVG(score) AS average FROM reviews GROUP BY movie_id HAVING average < 2;
The code challenge asks to filter out any average value above 2, hence you should keep only the ones below 2.
Hope this helps,
Cheers,