![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 04 Nov 2004 @ 17:07:11 GMT
Clay, Try the following
Select Case when (ColA = 1 and ColB is not null)
then ColC
else cast('2004-05-05' as date format 'yyyy-mm-dd')
End
>From Clay_Case_Date;
or
Select Case when (ColA = 1 and ColB is not null)
then ColC
else cast(1040505 as date )
End
>From Clay_Case_Date
Basically, any CAST statement with an appropriately formatted date value. Cheers, Dave
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||