Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 27 Nov 2012 @ 11:21:39 GMT


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


Subj:   Re: Doubt with indexes
 
From:   MARIA JOSEFA RODRIGUEZ POSADA

Prasanna,

Thanks but, the thing is that this table is a simplify version of the real one, and it's already partitioned.

Something like this:

     CREATE MULTISET TABLE FINA_BORRAR ,NO FALLBACK ,
          NO BEFORE JOURNAL,
          NO AFTER JOURNAL,
          CHECKSUM = DEFAULT
          (
           id_temporada 	SMALLINT,
           id_temporada_movimiento SMALLINT,
           id_tienda INTEGER NOT NULL,
           val_acum INTEGER COMPRESS (1 ,2 ,3 ,4 ,5 ,6 ,-4 ,-3 ,-2 ,-1 ),
           fec_inicio_vigencia DATE FORMAT 'YYYYMMDD' NOT NULL,
           fec_fin_vigencia DATE FORMAT 'YYYYMMDD' NOT NULL)
     UNIQUE PRIMARY INDEX ( fec_inicio_vigencia )
     PARTITION BY ( RANGE_N(id_temporada  BETWEEN -1  AND 100  EACH 1 ),
     RANGE_N(id_temporada_movimiento  BETWEEN -1  AND 100  EACH 1 ) );

I cannot add another "partition by" cause exceed the number of partitions allowed.

Any other idea?


Thanks a lot.

FINA RODRIGUEZ POSADA
Analista BI



     
  <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