Last Updated: May 12, 2026
For this exercise, we will work with below data:
Write a query that returns a single comma-separated list of distinct artist countries from the artists table, ordered alphabetically. Exclude NULL countries.
Write a query that returns the total amount of completed payments and the total amount of failed payments as two separate columns.
Write a query that returns each album's title, the count of tracks, and a comma-separated list of track titles ordered by track_number. Order results by album title.
Write a query that produces one row per album showing the album title, artist name, track count, total duration in seconds, and a comma-separated track listing ordered by track_number. Order results by album title.