Genres pulling their weight

Some genres barely fill a playlist; others carry the store. Which genres have more than 5 tracks? Group by genre_id, count, and filter the groups with HAVING — WHERE filters rows and can't see aggregates. Two columns: genre_id and tracks.

Tables in this exercise
tracks
id title album_id genre_id duration_sec unit_price

Back to the chapter