This should work:
select add_months(to_date(max(YourDate)), -6) from <table_name>;
The other previous will give u error : invalid character.
To avoid this error, convert the max(yourdate) into date first and then use the add_months function.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.