Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 24 Jun 2011 @ 10:09:39 GMT


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


Subj:   Re: MLPPI on date field
 
From:   Minakshi Swami

Hi,

Multiply of both partitions(years and months between 1900-01-01 and current)will exceed teradata limit of total no of partition 65535.

To me extract month of each year as a separate column say year_month. Now give case for each 12 month.

Eg.

     PARTITION BY (  RANGE_N(
        a BETWEEN DATE '1900-01-01' AND '2011-01-01'
        EACH INTERVAL 1 year,  NO RANGE)
        , CASE_N( year_month = 'jan' , year_month = 'feb',etc
        ,  NO CASE, UNKNOWN) )


     
  <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