I have a table EMPLOYEE_STATUS
, with column
SUBMIT_DATE
values as 11-05-18 11:27:34.086000000 AM
and UPDATED_ON
values as 11-06-18 12:55:22.064000000 PM
which is basically current date.
I need a sql query for oracle database to find those rows where difference in days between submited date and updated on or current date is 30 days or more.
I tried DATEDIFF
function but couldnt able to make it work.
I have tried the following (which does not work):
select * from EMPLOYEE_STATUS e
where DATEDIFF(month, '12-06-18 03:34:09.448000000 PM', e.SUBMIT_DATE) >=1