on 10-13-2020 2:04 PM
Hi All. I am working on a requirement to calculate the rolling 24 months date based on sysdate in BODS . In oracle it was implemeted as follows:
TRUNC(ADD_MONTHS(SYSDATE - 730,1),'MM'). I am unable to implement the same in BODS since trunc does not work on dates. Please help me on this issue.
Hi there,
try this:
(ADD_MONTHS(SYSDATE(), -24)) - (day_in_month(ADD_MONTHS(SYSDATE(), -24))-1)
regards,
Julian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.