Creating a SQL Design Report
Hi,
I need to create a report to check if my backup jobs are being executed within the backup window, which is from 7PM to 6AM.
In other words, if the report shows any backup job being executed before or after this backup window, this means that we have a problem.
The job summary report shows all the jobs, so I want to schedule it to run every day at 10AM, but it will show all the jobs that were executed from the previous day from 4PM until the day it is executed until 10AM.
Ex: Today is 05-22-25
The report will show from 05-21-25 at 4PM until today 05-22-25 at 10AM.
I want to know how I can configure this here:
SELECT apt_v_job.client_name, apt_v_job.start_date
FROM apt_v_job
WHERE apt_v_job.summary_status = 0
AND apt_v_job.start_date BETWEEN ${startDate} AND ${endDate}
Thanks.

