![]() |
|
Archives of the TeradataForumMessage Posted: Mon, 22 Aug 2005 @ 15:06:37 GMT
Hi all, maybe this is an alternative option for you:
sel (date - date'0001-01-01') mod 7 + 1;
returns:
1 = Monday
2 = Tuesday
3 = Wednesday
and so on...
Regards, Dirk
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||