|
Archives of the TeradataForumMessage Posted: Tue, 15 Feb 2005 @ 14:04:22 GMT
We're puzzled over the output format that changes on a date between two selects. At first we say ... "select cast(fiscal_week_begin as char(10)) from svrdwv2.calendar where fiscal_calendar_key = 0 and cal_date = current_date;" And the select returns 05/02/13 Then we say ... "select cast(fiscal_week_begin-1 as char(10)) from svrdwv2.calendar where fiscal_calendar_key = 0 and cal_date = current_date;" And the select returns 2005/02/12 The actual results are correct both times, but the change in date format is causing some problems. What's affecting the change in format when we, in effect, do some math on the cast? Thanks in advance!
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||