LeighDreyer
Programmer
I need to count the number of occurances in a day for each month ?.
I have 6 tables I use one holds 10 years of dates, the other one holds admittance dates and discharge dates for a patient. I need to calculate the occupancy each day of the month for a single month. example patients have admittance dates and discharge dates i.e admittance date 03/01/03 and discharge date 27/01/03 which means he has been in everyday between those 2 dates. I already use the Calendar table to display all occurance using Todays_date between Admit_Date and Discharge_Date but cant perfomr the count for each day of the month pleae help ??
I have 6 tables I use one holds 10 years of dates, the other one holds admittance dates and discharge dates for a patient. I need to calculate the occupancy each day of the month for a single month. example patients have admittance dates and discharge dates i.e admittance date 03/01/03 and discharge date 27/01/03 which means he has been in everyday between those 2 dates. I already use the Calendar table to display all occurance using Todays_date between Admit_Date and Discharge_Date but cant perfomr the count for each day of the month pleae help ??