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
i would like some help topic database paging through results!!!!!!!!!!!!!!!!
In a library database there's a books table. There's a title, author, genre and first_published column. The library database is connected to a website displaying 10 books at a time, sorted by the title alphabetically. Write a query to bring back the second page of results. Please retrieve all columns of information.
topic : paging through result, challenge one!
Steven Parker227,114 Points
Is your issue just the paging?
I'm going to assume you're comfortable with the rest of the query instructions. So if you are displaying 10 entries at a time, then your
LIMIT is 10. And if you want to see the second page, that would mean you want to skip the first page of 10, so your
OFFSET would also be 10.
Does that answer your question?
In future, to enable the most complete and accurate analysis, always post your code along with a link to the course page.