Maven4Champ
Board Regular
- Joined
- Jun 10, 2004
- Messages
- 57
Percent_Total Down Time: [Total Down Time]/1440
Sum Of Total Down Time: Sum([SiebelOutageQuery].[Total Down Time])
>=#01/01/2004# And <=#08/02/2004#
I have a somewhat complicated somewhat simple question...
I am running a database that contains server uptime, server downtime and totaldowntime, etc.
I already have one query that creates the minute total of downtime (by figuring from the start of the downtime to the start of the uptime - that gives me my total number of time the server was down).
Now, what I want to do is create another query off of that query that can give a TotalDownTime percentage based off of the total minutes the server was down. Now, figuring that it goes by minutes, I created this:
Percent_Total Down Time: [Total Down Time]/1440
- This essentially divides Total Down Time (which is in minutes already) by 1440 (how many minutes are in a day) to get a percentage value of how long it was down for that day. Now, I also have a second field (Date) which I have basically defined with the following criteria: >=#01/01/2004# And <=#08/02/2004# (essentially giving me a YTD figure percentage).
here is where my problem is at. I can create the above query, but now I obviously need just 1 final percentage which equals my YTD Total Down Time. I had did the above expression, and in the Totals field, did AVG for the Total Down Time and then AVG for Date, to get one single value - but it doesn't appear to be correct.
Is there a better way to get the final percentage total in this query?
Sum Of Total Down Time: Sum([SiebelOutageQuery].[Total Down Time])
>=#01/01/2004# And <=#08/02/2004#
I have a somewhat complicated somewhat simple question...
I am running a database that contains server uptime, server downtime and totaldowntime, etc.
I already have one query that creates the minute total of downtime (by figuring from the start of the downtime to the start of the uptime - that gives me my total number of time the server was down).
Now, what I want to do is create another query off of that query that can give a TotalDownTime percentage based off of the total minutes the server was down. Now, figuring that it goes by minutes, I created this:
Percent_Total Down Time: [Total Down Time]/1440
- This essentially divides Total Down Time (which is in minutes already) by 1440 (how many minutes are in a day) to get a percentage value of how long it was down for that day. Now, I also have a second field (Date) which I have basically defined with the following criteria: >=#01/01/2004# And <=#08/02/2004# (essentially giving me a YTD figure percentage).
here is where my problem is at. I can create the above query, but now I obviously need just 1 final percentage which equals my YTD Total Down Time. I had did the above expression, and in the Totals field, did AVG for the Total Down Time and then AVG for Date, to get one single value - but it doesn't appear to be correct.
Is there a better way to get the final percentage total in this query?