|
Archives of the TeradataForumMessage Posted: Fri, 05 Apr 2002 @ 18:04:59 GMT
In trying to understand why/how the SQL from Kent works, ... (widen window to make following text readable) Date math: Select date '2001-01-01' - date '2001-01-02' ; works fine. Select date '2001-01-01' - date '2001-01-02' year to day ; error 3706 !! (why?) Time math: select time '00:00:15'-time '00:00:15' ; error 5407 select time '00:00:15'-time '00:00:15' hour to second ; works fine select time '00:00:15'-time '00:00:15' second ; works fine Timestamp math: select timestamp '2002-01-01 00:00:15' - timestamp '2002-01-01 00:01:17' day to second; works fine select timestamp '2002-01-01 00:00:15' - timestamp '2002-01-01 00:01:17' second(3); works fine Related question: In the SQL select time '00:00:15'-time '00:00:15' hour to second; what does 'hour to second' do? Is it doing a conversion/casting? Kumaran Anantaraman
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||