New arrival

Boss exercise. Marina Sol's new album just arrived at the warehouse and needs cataloguing. It is album id 18, titled 'Costa Norte', released in 2025 (artist 2), and it ships with two tracks: 'Amanecer' (id 50, Soul, 224 seconds, 0.99) and 'Marea Alta' (id 51, Soul, 258 seconds, 1.29). Write it all to the database — album first, then the tracks — using as many statements as you need.

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