Midnight;
TRUNC(SYSDATE)+1
Tomorrow at 7am;
TRUNC(SYSDATE)+1 + 7/24
Every two hours (on the hour);
TRUNC(SYSDATE, 'HH') + 2/24
Every two hours (on the hour) between 8am and 6pm every day;
CASE WHEN TRUNC(SYSDATE, 'HH') + 2/24 <= TRUNC(SYSDATE) + 19/24 THEN TRUNC(SYSDATE, 'HH') + 2/24 ELSE TRUNC(SYSDATE)+1 + 8/24 END
0 comments:
Post a Comment