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

PHP Integrating PHP with Databases Limiting Records in SQL LIMIT and OFFSET

Esmee Fulcher
Esmee Fulcher
923 Points

What's wrong with my code limit and offset task 2

I thought I did everything correctly what is wrong with my code? Question: Challenge Task 2 of 2 Note: We will be writing ONLY the SQL query for this challenge.

Imagine you're developing a Contacts application on a phone. You have a database with a phone_book table. It has the columns, first_name, last_name and phone.

The phone has a technical limitation to show 20 contacts on a screen at a time. Write the SQL query to retrieve the 3rd page of results from the phone_book table. Contacts are ordered by last name and then first name.

Steven Parker
Steven Parker
231,269 Points

And what was the query code that you wrote?