![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 31 Jul 2003 @ 14:08:54 GMT
You could join to the Sys_Calendar database... something like this
select Ship_To_Date,
cast((year_of_calendar (format '9999')) as char(4)) ||
cast((week_of_year (format '99')) as char(2)) as isodate
...
from yourtable t
, sys_calendar.calendar c
...
where ship_to_date = calendar_date
...
Pat Belle
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||