How often do customers come back? For every order, return customer_id, order_date and days_since_previous: the whole number of days since that customer's previous order, or NULL for their first order.
Sort by customer_id, then order_date.
Schema
customers(id, name, country, signup_date)
orders(id, customer_id, order_date, total)