gmollineau
asked on
How to use SQL to substract 2 months from BD2 data number 1200228
HI
I have a AS400 BD2 data field representing a date - the format is yyymmdd, but the data type is numeric.
Example 1200228 is 28th Feb 2020.
I want to be able to have SQL recognize it as a date and substract 2 months from the date.
Example 1200228 - 2months should be 1191228 ..
Regards
Gerald
I have a AS400 BD2 data field representing a date - the format is yyymmdd, but the data type is numeric.
Example 1200228 is 28th Feb 2020.
I want to be able to have SQL recognize it as a date and substract 2 months from the date.
Example 1200228 - 2months should be 1191228 ..
Regards
Gerald
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.