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 Reporting with SQL Aggregate and Numeric Functions Calculating the Minimum and Maximum Values

Challenge Task 1 of 1 We're in a movie database.

i keep getting a bummer !! here my code help please! SELECT MIN(ratings) AS star_min, MAX(ratings) AS star_max FROM views WHERE movie_id =6;

2 Answers

Steven Parker
Steven Parker
231,184 Points

You're pretty close, but there's a few issues with the table and column names. The instructions say "There's a reviews table with the columns of id, movie_id, username, review and rating."

But the query, references "ratings" (with an "s") instead of "rating", and "views" instead of "reviews"

thanx steve nailed it

Steven Parker
Steven Parker
231,184 Points

tonderayi masiyandima — Glad to help. You can mark a question solved by choosing a "best answer".

And happy coding!