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 trialComms Team
1,304 PointsBummer! first_published should be descending. Isn't that what I have?
Reporting with SQL Challenge Task 2 of 3
SELECT * FROM books ORDER BY first_published DESC, title ASC;
I received a Bummer message as stated in the question title.
What am I doing wrong?
Sorry that would have been a smart thing to do.
2 Answers
Steven Parker
231,269 PointsThe message may be a bit confusing, but the issue is that the challenge did not ask for the title to be used in the ordering.
For best results with the challenges, be careful to follow the instructions and to not do anything "extra".
Comms Team
1,304 PointsThank you Steven. Tried it without ordering title but this is what I got. First_published was in descending order in database. - Maybe I'm still not reading the challenge correctly.
Bummer! Your query didn't order the books from the books
table in the correct order!
SELECT title, first_published FROM books ORDER BY first_published DESC;
Steven Parker
231,269 PointsYou had the SELECT
clause right the first time.
Chitra Tovinkere
3,864 PointsI tried this and it worked - select * from books order by first_published desc;
Nice! You're doing great!
Comms Team
1,304 PointsThanks to all!
Chitra, thank you! I guess I had a blind spot when it said "Select all columns". I tried it and it works. Thanks again. Marsha
Chitra Tovinkere
3,864 PointsChitra Tovinkere
3,864 PointsCould you share a link to the task?