Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 14 Dec 2007 @ 19:52:55 GMT


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


Subj:   Re: Representation of Partitioned Priomary Indexes in DBC
 
From:   Curley, David

Thanks, Kamin.

One thing I noticed: DBC.INDEXCONSTRAINTS.ConstraintText contains more or less the actual partitioning text, so when you parse it, be sure to look for all forms a date might take. For example, you might find

     CHECK ((RANGE_N(data_dt  BETWEEN 1050101  AND 1071231  EACH INTERVAL '1'
     MONTH , NO RANGE OR UNKNOWN)) BETWEEN 1 and 65535)
     CHECK ((RANGE_N(data_dt  BETWEEN '2007/04/01' AND '2008/12/31' EACH
     INTERVAL '1' MONTH , NO RANGE OR UNKNOWN)) BETWEEN 1 and 65535)

So maybe you'd want to look for '%2007%' or '%107%'.


Dave



     
  <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