SQL Practice Logo

SQLPractice Online

Scenario SQL Question

Cumulative Sum with Monthly Reset

Build mastery in Date Operations with this scenario-based SQL challenge and live execution support.

Problem Statement

Write a query to calculate cumulative sales that reset each month. Return order_date, order_total, and cumulative_amount_month.

Relevant Tables

orders

SQL Concepts Used in This Scenario

Strengthen your understanding with these targeted learning topics: