Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 22 Dec 2015 @ 10:48:13 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 23 Jun 2019