Tracks per genre

The catalog spans eight genres. For each genre, how many tracks does it hold? Group the tracks table by genre_id and count inside each group. Two columns: genre_id and tracks. (We'll report the id for now — joining to bring in genre names comes in a later chapter.)

Tables in this exercise
tracks
id title album_id genre_id duration_sec unit_price

Back to the chapter