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

PHP

Challenge Task 1 of 1

That's my solution for the challenge and i don't know where i get it all wrong please assist.

SELECT min(rating) AS star_min, Max(rating) as star_max FROM reviews WHERE movie_id = 6;

György Varga
György Varga
19,198 Points

Post the link for the challange please!

2 Answers

György Varga
György Varga
19,198 Points

Hi!

Here is the correct code. Please notice the difference!

SELECT MIN(rating) AS star_min, MAX(rating) AS star_max FROM reviews WHERE movie_id = 6;

Thank you so much.

I noticed that i was suppose to capitalize the other keywords.