![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 07 Sep 2011 @ 07:47:04 GMT
Hi, For subtracting hour from time you can use as-
Select cast(TRANSTime as time(0)),cast((TRANSTime - cast('06:00:00' as
decimal(6))) as time(0))
From tablename;
Thanks & Regards, Avinash Rai
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||