|
|
Archives of the TeradataForum
Message Posted: Thu, 21 Dec 2006 @ 19:52:47 GMT
Subj: | | Re: Converting Time to seconds |
|
From: | | Barner Eric |
Here is a conversion
select
( ( dbqlogtbl.LastRespTime - dbqlogtbl.FirstStepTime ) DAY ( 4 ) TO
SECOND ) ( CHAR ( 26 ) ) AS elapsed
, SUBSTR ( elapsed , 6 , 9 ) ( INT ) AS duration
, ( ( Duration MOD 100 ) + ( ( Duration MOD 10000 ) / 100 ) * 60 + (
Duration / 10000 ) * 3600 ) AS RunTimeSec
, dbqlogtbl.*
from dbc.dbqlogtbl as dbqlogtbl
where collecttimestamp(date ) = current_date;
| |