This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Custom SQL Query for Aggregated Working Hours Report

I need to generate availability report for a bank:

Now, daily availability report say for branch connectivity  is easily gotten from the report writer: By filtering availability average between 8 am and 5 pm ( see history for the last 9 hours, and report is scheduled at 5 PM).

What I need now is aggregated report for availability of the branches weekly, monthly and annually ( considering the working hours is 8-5). Report shouldn't be for outside the working hours.