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 trialKristina Gillooly
9,546 PointsGet the 101st to 200th actor from actors table.
SELECT * FROM actors LIMIT 100, 199;
what am i doing wrong?
1 Answer
Patrick Kelly
6,200 PointsHey Kristina,
I'm no SQL expert but I just did a quick bit of research into this for you and found the following:
"With two arguments, the first argument specifies the offset of the first row to return, and the second specifies the maximum number of rows to return."
So based on the above I believe the correct syntax should be:(?)
SELECT * FROM actors LIMIT 100,100
Let me know how this works for you. :)
Best, Patrick