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
Stephen Moss2,285 Points
I've read the documentation and checked against my database and the query is correct, but reporting wrong in the quiz.
SELECT title FROM movies LIMIT 10, 20;
Jason AnelloCourses Plus Student 94,610 Points
It's looking for you to select everything from the movies database rather than the
Charles Smith7,575 Points
I think the question is asking for a different result set:
Get the 11th-30 movie from the movies table (or something like that.)
So you need any movies from the movie table, and you need a total of 20.
To get any movies:
SELECT * FROM movies
and you only want 20 total movies, so let's add to that query:
SELECT * FROM movies LIMIT 20
Finally, since we want the 11th-30th, we're going forget about the first 10.
SELECT * FROM movies LIMIT 20 OFFSET 10