Albums with more than two tracks

A correlated subquery that counts. For each album, count its tracks and keep the ones with more than 2 tracks — that should be 15 albums.

Tables in this exercise
albums
id title artist_id release_year
tracks
id title album_id genre_id duration_sec unit_price

Back to the chapter