thanks to all it works fine.
May i ask you one more thing?
I 'd like to find in a single query the number of customer grouped by their last purchase_id before a certain date.
That is I want to have eg :
- 1200 cutomers whose last purchase_id='X'
- 800 cutomers whose last purchase_id='Y' and so...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.