- Local time
- Today, 16:10
- Joined
- Jan 23, 2006
- Messages
- 15,528
I think the issue is you know exactly what you want to do, and you know the table structure. I'm going by exactly what you're writing.
ClientId 660 has Treatments Order from between 3 and 6 months ago; and has future Orders for Traetments -- that's why you're not showing records.
But I was going on your statement
If you can find examples of a clientId who
a) has ordered treatments in last 3-6months and has no future order for the treatments condition, and
b) has ordered treatments in last 3-6months and has a future order for the treatments condition, then I have some sample to work with.
I feel we are just not connecting with the words. I'm trying to help but feel I only have some of the info.
ClientId 660 has Treatments Order from between 3 and 6 months ago; and has future Orders for Traetments -- that's why you're not showing records.
But I was going on your statement
the email that would be sent to client 660 is none. the client has not had a treatment in the period between 3 and 6 months ago.
If you can find examples of a clientId who
a) has ordered treatments in last 3-6months and has no future order for the treatments condition, and
b) has ordered treatments in last 3-6months and has a future order for the treatments condition, then I have some sample to work with.
I feel we are just not connecting with the words. I'm trying to help but feel I only have some of the info.