Hi! Running Reports 10 against Oracle9i.
I'm trying to find the most efficient way to calculate the following:
1)Pull the system ID for the systems that had outages yesterday
2) go back 30 days from yesterday and see how many of those systems had prior tickets during that time period.
3) if the system has 3 outages or more in 30 days, increment the count by 1.
4) repeat 1-3 with next system from yesterday.
5) reset the count at the beginning of the month.
Bonus:
I need to find some way of making this where I can regress historically and calculate this since the beginning of the year.
Available Data: SystemID (string), FailureEndDate(date/time), TicketNumber(string)(primary key on table)
Any suggestions? I know how to check for the 3 in 30 OVERALL, but not based on yesterday's data....
I'm trying to find the most efficient way to calculate the following:
1)Pull the system ID for the systems that had outages yesterday
2) go back 30 days from yesterday and see how many of those systems had prior tickets during that time period.
3) if the system has 3 outages or more in 30 days, increment the count by 1.
4) repeat 1-3 with next system from yesterday.
5) reset the count at the beginning of the month.
Bonus:
I need to find some way of making this where I can regress historically and calculate this since the beginning of the year.
Available Data: SystemID (string), FailureEndDate(date/time), TicketNumber(string)(primary key on table)
Any suggestions? I know how to check for the 3 in 30 OVERALL, but not based on yesterday's data....