Assuming that audit_date
is a date
, not a varchar2
, if you are certain that the time component is always midnight, you can do
WHERE cu.audit_date = trunc(cu.audit_date, 'MM')
If there may be a non-midnight time component and you want to ignore the time component, you can do
WHERE trunc(cu.audit_date) = trunc(cu.audit_date, 'MM')
Alternately, you can use to_char
WHERE to_number( to_char( cu.audit_date, 'DD' ) ) = 1