Hi Anita,
We can pass integer values to date columns, but they should result in valid dates
The dates are stored as integer as per the following logic
((Year - 1900) * 10000) + (Month * 100) + Day
For example
If you were to pass the integer 1130228 then as per the above logic it would translate to 2013-02-28 which is a valid date, however if you try to pass 11302229 then it will fail as 2013-02-29 is not a valid date
So please make sure that the MAX(ABCD01_RPT_MNTHYR_Y) translates to a valid date.
Let me know if this solves the problem
Regards
R.Rajeev
↧