I have what may be an odd question, but I'm sure there's someone out there that knows how to accomplish this.
I have a report that is using DateDiff to calculate the amount of time between two dates. What I want to do is take this one step further. If there is a weekend between the two dates, I would like the query to automatically subtract 48 hours from the calcluation. We run a radiology practice, and we're trying to show our average times of service, like the average amount of time elapsed from the time a patient checks in until the patient's exam report is approved. Since we don't work on weekends, we don't want the extra 48 hours to be included in the calculations.
Any help anyone can give would be most appreciated.
I have a report that is using DateDiff to calculate the amount of time between two dates. What I want to do is take this one step further. If there is a weekend between the two dates, I would like the query to automatically subtract 48 hours from the calcluation. We run a radiology practice, and we're trying to show our average times of service, like the average amount of time elapsed from the time a patient checks in until the patient's exam report is approved. Since we don't work on weekends, we don't want the extra 48 hours to be included in the calculations.
Any help anyone can give would be most appreciated.