I try to get the difference between 20201001-20200930 is 71 not 1 day try to get difference between sysdate(20201127) and 20200106 is 1021 10 refer to number of months and 21 refer to the number of days
select GetDate(sysdate)-floor(D.INIT_TIMESTAMP) FROM T_NOTIFICATION
I try to get the difference between 20201001-20200930 is 71 not 1 day