SpinTheMic
Pro

Interview practice question

Customers whose spend grew every month

Data Engineering · SQL · Intermediate

Find customers whose monthly spend increased every month for the last 6 months.

What a strong answer covers

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

  • Aggregate spend per customer per month with a month spine.
  • Use LAG to compare each month with the previous one.
  • Flag months where spend did not increase.
  • Keep customers with zero non-increasing months in the window.
  • Missing months should count as zero spend, so they break the streak.
Practise this topic

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

See all topics