S
Simon Jester
Hi everyone. I really thought I was getting a handle on all this till
this evening. Now I am worried that my brain is going to explode.
My db has two kinds of customer services, I'll loosely define them as
Type_A and Type_B. I have a list telling me which service category id
falls under which type. Each service record has a unique service id,
customer id, service category id, and a service date. There can be
(and usually are) several different service records for each customer
from both categories.
All I want to see are the the customer ids of those who receive a
Type_B service within 45 days of receiving a Type_A service. It gets
confusing (and over my head), because of all the different services
that can be delivered. A simple datediff won't do it, I don't think.
Anyone have any thoughts on how I can do this? Can this even be done?
I hope I explained this clearly enough.
Any help would be ever so appreciated.
Thanks!
SJ
this evening. Now I am worried that my brain is going to explode.
My db has two kinds of customer services, I'll loosely define them as
Type_A and Type_B. I have a list telling me which service category id
falls under which type. Each service record has a unique service id,
customer id, service category id, and a service date. There can be
(and usually are) several different service records for each customer
from both categories.
All I want to see are the the customer ids of those who receive a
Type_B service within 45 days of receiving a Type_A service. It gets
confusing (and over my head), because of all the different services
that can be delivered. A simple datediff won't do it, I don't think.
Anyone have any thoughts on how I can do this? Can this even be done?
I hope I explained this clearly enough.
Any help would be ever so appreciated.
Thanks!
SJ