AnalystPath

New Customer Acquisition per Month

SQLEasyJunior levelTiger Analytics~15 min

Problem

**[Asked at Tiger Analytics]**

Count the number of **newly acquired customers per month**.
A customer is acquired in the month of their **first ever order**.

Return `acquisition_month` (YYYY-MM) and `new_customers`, ordered by month.

Tables

Example rows — the live problem includes the full dataset.

orders
order_idcustomer_idorder_date

Expected output

Your answer should return 2 rows with the columns acquisition_month, new_customers.

Starter code (SQL)

SELECT *
FROM orders;

Solve this SQL question free

Write SQL and run it instantly in your browser — even on your phone. No signup needed to try.

Solution & explanation

Create a free account to unlock the optimal solution, a step-by-step explanation, and the hidden test cases that grade your answer.

Sign up free to unlock

Related SQL questions