Archives of the TeradataForum
Message Posted: Mon, 22 Feb 2010 @ 21:41:54 GMT
When I ran this code:
sel cdate ,(date-cdate) year(4) from Sys_Calendar.caldates where cdate between '2009-01-01' and '2009-12-31' order by 1
I received the value of 1 for the dates of 2009-01-01 thru 2009-02-22. I received the value 0 for the rest of the dates. I have a v6 and v12 box available, and got the same result on both.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|