I have a table with a date column that reflects the date when some job started, and all entries related to the same job should have the same date. The job can last until the next day, but I want the date to be the same for all entries related to the same job.
For the next run of the job, again all entries should have the date when the job started.
I tried with default date as sysdate:
alter table myTable modify mydate default trunc(sysdate)
However, that gives different dates for jobs that run over the next day.
Any body has any suggestions of how to achieve this?