Hi,
I have a db which records chemotherapy appointment data.
I want to count the number of days a patient attends for treatment on a monthly basis. The database contains several rows for each days treatment and they can vary. Each row will contain the patients number, the appointment date, drug names etc etc A patient may have more than one appointment during a month.
If I do a distinct count I get the number of patients (not the number of times they have attended), if I do a count I get all rows for all days.
For example for Aug 2006 distinct count gives 12, and a count gives 256. The total episodes when I look in the front end is 29.
How can I get an accurate monthly total.
I would appreciate any help with this
Steve
I have a db which records chemotherapy appointment data.
I want to count the number of days a patient attends for treatment on a monthly basis. The database contains several rows for each days treatment and they can vary. Each row will contain the patients number, the appointment date, drug names etc etc A patient may have more than one appointment during a month.
If I do a distinct count I get the number of patients (not the number of times they have attended), if I do a count I get all rows for all days.
For example for Aug 2006 distinct count gives 12, and a count gives 256. The total episodes when I look in the front end is 29.
How can I get an accurate monthly total.
I would appreciate any help with this
Steve