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 trialPhillip Lewis
8,549 PointsI am putting in the correct answer but getting Bummer! message.
I do not see an error in my code. If there is one can it be shown to me.
3 Answers
Iain Simmons
Treehouse Moderator 32,305 PointsSo it would be the second one, but try without quotes around the alias jk_book_count
.
Umesh Ravji
42,386 PointsThe secound query runs fine as it is. The issue could be something like a space before the SELECT
keyword.
Phillip Lewis
8,549 PointsIn the library database, how many books are with the author of "J.K. Rowling"? Alias the result as jk_book_count. The books table has the columns id, title, author, genre and first_published.
SELECT COUNT(author) AS "jk_book_count" FROM books WHERE author = "J.K. Rowling";
SELECT COUNT(*) AS "jk_book_count" FROM books WHERE author = "J.K. Rowling";
Laura Dumitru
9,818 PointsThe errors could be better thought out. "Bummer you didn't write a SQL statement" is not helpful to debug the issue! Especially when you're following step by step with the video and it still doesn't work.
Iain Simmons
Treehouse Moderator 32,305 PointsIain Simmons
Treehouse Moderator 32,305 PointsCan you please share the link to the challenge you're looking at and a copy of the code you're trying to use?
Have a look at the Markdown Cheatsheet linked below the question/comment/answer box to see how to format code on the forums.