I have the following SQL which I'm hoping will run a job every day at 7:00am, but I'm not sure what the LEAST statement is doing. Can anyone explain why I need this, or what it's doing? (Obviously I borrowed the code from an example).

Thanks,

Paul


DECLARE
jobno NUMBER;
BEGIN
dbms_job.submit(jobno
,'MY_PACKAGE.MY_JOB;'
,SYSDATE
,'TRUNC(LEAST(NEXT_DAY(SYSDATE, ''MONDAY'')'||
',NEXT_DAY(SYSDATE, ''TUESDAY'')'||
',NEXT_DAY(SYSDATE, ''WEDNESDAY'')'||
',NEXT_DAY(SYSDATE, ''THURSDAY'')'||
',NEXT_DAY(SYSDATE, ''FRIDAY'')))+7/24'
);
END;