I have a set of records with repeat_interval values in Oracle, such as:
FREQ = MINUTELY; INTERVAL = 30
SYSDATE + 20/(24*60*60)
NEXT_DAY(trunc(SYSDATE),'MON')+5/24
I want to calculate the interval of each job in seconds, i.e., the time in seconds until the job needs to start again.
I have tried various approaches, but none of them have worked. I'm looking for a clean and efficient solution to obtain the intervals in seconds without relying on string parsing.
Any suggestions or alternative solutions would be greatly appreciated.