H
hcapper
Maybe someone here can help me. I have a database of customers with
information on their purchases. I need to get the time elapsed between
purchases and then get an average of time (in days) between purchases.
For example I want to sample 10% of my customers with at least X number of
purchases, to find the average time between their 2nd and 3rd purchases. (or
1st & 2nd, 3rd & 4th). I'm having a hard time wrapping my head around how to
make sure that I am looking at the right purchases. How do I know that I'm
working with exactly the 2nd and 3rd purchase?
I hope to be able to do this with a query or series of queries, since I'm
only mediocre at coding.
Thanks for your help.
Rob
information on their purchases. I need to get the time elapsed between
purchases and then get an average of time (in days) between purchases.
For example I want to sample 10% of my customers with at least X number of
purchases, to find the average time between their 2nd and 3rd purchases. (or
1st & 2nd, 3rd & 4th). I'm having a hard time wrapping my head around how to
make sure that I am looking at the right purchases. How do I know that I'm
working with exactly the 2nd and 3rd purchase?
I hope to be able to do this with a query or series of queries, since I'm
only mediocre at coding.
Thanks for your help.
Rob