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 trialGabriel E
8,916 PointsSQL ordering challenge
I feel like I am very close to getting this challenge, but I'm still doing something wrong. Here is the link to the challenge: https://teamtreehouse.com/library/reporting-with-sql/ordering-limiting-and-paging-results/paging-through-results-2. And here is my code so far:
SELECT * FROM phone_book ORDER BY last_name ASC, first_name ASC LIMIT 20 OFFSET 20;
1 Answer
Steven Parker
231,261 PointsYou almost have it. The challenge says to "...retrieve the 3rd page of results...", but the offset you have now gives you the 2nd page.
Try doubling your offset.
Gabriel E
8,916 PointsGabriel E
8,916 PointsAh, thank you so much! I was unconsciously thinking that "3rd page" had something to do with it, but I wasn't sure what.