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 trialDamion Armentrout
8,120 PointsWhy do I get this error: "Your query needs to retrive the earliest 'Science Fiction' book from the `books` table." ?
There are only 6 sci-fi books, so the limit of 10 will never work. Sci-fi books are not required by the exercise. Additionally, if you query for sci-fi, then it wants them to be ordered by first_published and not title. Finally, the word "retrieve" is spelled "retrive" which leads me to believe that this whole exercise was not carefully reviewed.
The exercise text reads:
Challenge Task 1 of 2
Note: We will be writing ONLY the SQL query for this challenge.
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.
This is from Integrating PHP with Databases, LIMIT and OFFSET.
2 Answers
Steven Parker
231,172 PointsI agree that those error messages are confusing.
They don't seem to be related to the challenge instructions. You might want to report this as a bug to Support.
However, if you construct a query following the instructions as given you should pass the challenge.
If you'd like more specific help with your error, please show the code you are entering for this task of the challenge.
Damion Armentrout
8,120 PointsI got the answer after a while and moved on. I was initially concerned that the validator wanted something other than what was asked for in the exercise, so I spent a lot of time trying to deal with the weird feedback.
Steven Parker
231,172 PointsI agree that feedback seemed inappropriate. I encourage you to report this as a bug to Support. It may even get you a "special Exterminator badge".