SpinTheMic
Pro

Interview practice question

Monthly revenue report

Data Analyst · SQL for Analytics · Beginner

Write the logic for a query that shows total revenue per month for 2025, excluding cancelled orders.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Filter year and status in WHERE.
  • DATE_TRUNC('month', order_date).
  • SUM(amount).
  • GROUP BY month, ORDER BY month.
  • Check time zone and refunds definition.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics