Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 10 Apr 2009 @ 19:59:37 GMT


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


Subj:   Re: Finding frequency of NUSI usage
 
From:   Bernard, Vincent

I like this:

     select
        tablename,
        indexname,
        indextype,
        sum(case when accesscount is null
                 then 0
                 else accesscount
                 end)   as accesscount
     from
        dbc.indices
     where
        databasename = 'myDatabase'
     group by
        1,2,3

Vincent Bernard



     
  <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: 27 Dec 2016