![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 03 Sep 2003 @ 15:13:15 GMT
Much simplier expression for what you are doing. Check into ANSIINTERVAL select avg((cast(timestampfield as time) - time '00:00:00.000000') hour to second) from table Brad
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 30 Jun 2008 | ||||||||||||||||||||||||||||||||||||||||||||||||