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!

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

Database Foundations Numeric and Aggregate Functions challenge error

Not a question, but figured you may want to look at this, Andrew Chalkley I looked first and found this, https://teamtreehouse.com/forum/database-foundations-numeric-aggregate-functions-errors-in-directions

which is a similar error although not the same


As you can see, the challenge is calling for AVG(score) to be alias'd as "average_all_scores" but the "Bummer!" error is asking for AVG(score) to be alias'd as min_score, which looks like it may be related to the other issue posted a year ago, linked above.


SELECT AVG(*) AS average_all_scores FROM reviews;

which failed, the correct answer was:

SELECT AVG(score) AS average_all_scores FROM reviews;