Link to home
Start Free TrialLog in
Avatar of RaoVP
RaoVPFlag for United States of America

asked on

Count Logic

Hi,
I am working on logic but unable to find a way around it, can you guys please help me out.

(1) There are Patient Results Coming into the Database Each Month.
(2) I need to put a count Of patient Results Starting from the Month of may, In the Count the patient Will be included only if he has more the 4 months results. For eg: he will be included in May only if he has results for the Month of jan,Feb,March,Aprl
(3) In jun also the count of patients will include, those patients who has more then 4 Months of Results earlier.

Thanks
VP
Avatar of Mike McCracken
Mike McCracken

Are you running this for a particular month or for some date interval?

mlmcc
Avatar of RaoVP

ASKER

Date Interval- 1/1/2011 to till date.
So Patient1 has appointments in Jan, feb, Mar, Apr, Jun, JUl, Aug, Sep, Oct, Nov
Patient1  counts in May, Oct, Nov, and Dec but not in Jun, Jul, Aug, and Sep?

Patient2 has Feb, Mar, Apr, May
COunts in Jun but not May?

mlmcc

ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.