|
|
Archives of the TeradataForum
Message Posted: Tue, 22 Dec 2015 @ 10:48:13 GMT
Subj: | | Re: CPU & IO by workload |
|
From: | | Pirri, Antonio |
Hi Martin, I think you can use this Query for example:
SELECT T2.RuleName
, T1.WDID
, (T1.FirstRespTime - T1.StartTime HOUR TO SECOND) Response
,userName
,cast(collectTimeStamp as date)
,SUM(AMPCPUTime )
,SUM(TotalIOCount)
FROM dbc.DBQLogTbl T1
, TDWM.RuleDefs T2
WHERE T1.WDID = T2.RuleId
and
RuleName = '%'
and cast(collectTimeStamp as date) between date-45 and date
group by 1,2,3,4,5
Thanks
Antonio Pirri
Professional Services Consultant
Brazil
| |