hello
i've a CUSTOMERS table (customer_id) and a PURCHASES table (customer_id, purchase_date,purchase_id)
I'm trying to count the number of customers who bought purchase_id = X and, in the 12 months before buying X, also bought at least twice purchase_id = Z.
Any idea ?
Thanks in advance
Patrick
i've a CUSTOMERS table (customer_id) and a PURCHASES table (customer_id, purchase_date,purchase_id)
I'm trying to count the number of customers who bought purchase_id = X and, in the 12 months before buying X, also bought at least twice purchase_id = Z.
Any idea ?
Thanks in advance
Patrick