Last Updated: May 12, 2026
For this exercise, we will work with below data:
Write a query that returns the total number of streams per month for the entire platform. Show month (truncated to the first day) and stream_count. Order by month.
Write a query that returns total platform revenue per month from the payments table, where revenue is amount - COALESCE(refund_amount, 0) for completed payments. Show month and revenue. Order by month.