Hi
I have a job that runs every day, and logs in a table when it is done. And at the end of the month, I need to figure out is the job is living up to the requriments
Whitch are:
the job has to be finished by 8 in the morning, but since this is not always posible, I need to messure how many minutes it is later then 8, meaning the only the days where the job finnishes after 8 are relevent, and it is the number of minutes after 8 that are relevent.
ex
end_time
04-06-20 08:50 --should count as 50 minutes
04-07-20 07:40 --not relevent
04-08-20 10:00 --should count as 120 minutes
the sql should return 170 minutes
And it should only messure it in weekdays. -wthe entery that is made in the weekends is also not relevent.
Thanks
Larshg
I have a job that runs every day, and logs in a table when it is done. And at the end of the month, I need to figure out is the job is living up to the requriments
Whitch are:
the job has to be finished by 8 in the morning, but since this is not always posible, I need to messure how many minutes it is later then 8, meaning the only the days where the job finnishes after 8 are relevent, and it is the number of minutes after 8 that are relevent.
ex
end_time
04-06-20 08:50 --should count as 50 minutes
04-07-20 07:40 --not relevent
04-08-20 10:00 --should count as 120 minutes
the sql should return 170 minutes
And it should only messure it in weekdays. -wthe entery that is made in the weekends is also not relevent.
Thanks
Larshg