The price of the whole catalog

If a fan bought every track once, what would the store take in? Compute the total value of all tracks and their average price in a single query — two columns, total_value and avg_price.

Tables in this exercise
tracks
id title album_id genre_id duration_sec unit_price

Back to the chapter