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

Databases

How do I solve the first task of the first challenge in Reporting with SQL?

Not sure whats wrong with my code... is it something with genre = " "?

1 Answer

Steven Parker
Steven Parker
231,271 Points

:point_right: Here's some generic hints:

  • when they say "Select all columns", they mean use "*" (don't list them all by name)
  • when using ORDER BY with multiple columns, list them separated by a comma

If you need more specific help, please post your code. A link to the challenge page would also be helpful.

Zachary Wheeler
Zachary Wheeler
1,157 Points

SELECT * FROM books ORDER BY first_published LIMIT ASC 5;

Here is what I have so far. when I put this, it says i'm missing the WHERE, but when i put WHERE it says im missing ORDER BY. It's the very first challenge on the Reporting SQL videos. Thanks