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 trialZach Johnston
2,500 PointsI'm not sure how this isn't pulling the correct count. SELECT COUNT(genre) AS genre_count FROM books GROUP BY genre
I've tested the same thing with different values in the playground, and it is pulling back information as I expect this to return
1 Answer
KRIS NIKOLAISEN
54,971 PointsAccording to the instructions the first column you are to select is genre: Include the genre column first and the genre_count as the second column of information
You will also want to use COUNT(*) to include null values in your count. COUNT(genre) only counts non null values for genre. See this video @ 2:19