I am working on a database tracking resident & student rotations in a hospital. Most of them rotate even amounts of time...from the 1st of a given month to the last of that month. There are fields in the database for Rotation Start date AND Rotation End Date. The problem is that some of the students rotate on six week schedules...ex. this month...6/14/04 - 7/25/04, and 7/26/04 - 9/2/04. We print a monthly roster showing everyone rotating in at any time during a given month. As you can see, July is no problem...All of the students either start or end during July. My current query searches for a start date OR and end date during July.
The problem at hand is August, or months like it, that fall between start & end dates in other months. (7/26/04 - 9/2/04). I need these students to show up on the August schedule.
How can I run a query that looks at the start & end dates of the rotation & returns a list of records that match for any date that falls in the time period I desire (say, August, or a particular week in August if I needed that.)
Thanks in advance for your help!
The problem at hand is August, or months like it, that fall between start & end dates in other months. (7/26/04 - 9/2/04). I need these students to show up on the August schedule.
How can I run a query that looks at the start & end dates of the rotation & returns a list of records that match for any date that falls in the time period I desire (say, August, or a particular week in August if I needed that.)
Thanks in advance for your help!