Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

casting 6 digit integer to date - response (1) by rajeev saravanan

$
0
0
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  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>