I have a field transaction_date
which is varchar2, I want to make a search on that field and get user_id of that user who is not active for the past 6 months
I tried with below query but its not giving correct answer, my query is:
select distinct(user_id)
from DAILYBOOKINGREPORT2
where TRANSACTION_DATE NOT BETWEEN to_date('31-MAY-2017') AND to_date('31-DEC-2016');