Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 28 Jan 2013 @ 10:41:57 GMT


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


Subj:   Re: How to find tables unsed for a 1year or more
 
From:   Mishra, Manish

Hi,

If PDCR is in place, then following can also be referred :

     SELECT
         objectdatabasename
         ,objecttablename
        ,MIN(LogDate)  --- Start  Date
        ,MAX(LogDate)                 --- End Date
         ,SUM(FreqofUse)
         FROM
         PDCRDATA.DBQLObjTbl_Hst
     WHERE
         TRIM(objectdatabasename) ='DatabaseName'
         AND objecttablename='TableName'
          GROUP BY 1,2

Regards,

Manish Mishra



     
  <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: 15 Jun 2023