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
Zachary Wheeler1,157 Points
Very First Reporting SQL Challenge Question
SELECT * FROM books ORDER BY first_published LIMIT ASC 5;
It asks us to input a code querying the first 5 in ascending order, but it says i'm missing WHERE. I don't know where to put the WHERE. Can you help me?
Steven Parker228,001 Points
You didn't finish your
I see that you started to write it, but you didn't finish testing for the Fantasy genre.
SELECT * FROM books WHERE genre = "Fantasy" ORDER BY first_published ASC LIMIT 5;
The incomplete test was rejecting every genre, producing 0 books instead of 5.
SELECT * FROM books WHERE genre="Fantasy" ORDER BY first_published ASC LIMIT 5;
Nice answer Imad - concise. I like it.