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

Development Tools Database Foundations Reading Data from Databases with SQL Limiting the Result Set

Database Foundations: Limiting the Results: Challenge Task 1

When I run this script in the MySQL Workbench, I get different results than when I run it in the challenge. "SELECT * FROM actors LIMIT 10 OFFSET 100;" When I run it for Task 1, it tells me it's wrong. I don't see how it is though.

2 Answers

very close you're trying to return the 101st to the 200th object, so your limit should be 100 and you need to set your offset to 100 because because as we know when returning the data it starts at 0. here is what i did and it passed.

SELECT * FROM actors LIMIT 100 OFFSET 100;

hope this helps, Kai.

.