Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 26 Sep 2005 @ 19:47:39 GMT


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


Subj:   Order of columns with in index or stats
 
From:   Anomy Anom

<-- Anonymously Posted: Monday, September 26, 2005 15:41 -->

Even though I specify the order of columns within both the create index and collect stats syntax why do they show up differently in the show table, etc? I take it the order listed in the syntax I write really doesn't mater? Why is this?

     create table test1
     (C1 char
     ,c2 char
     ,c3 char
     ,c4 char
     ,c5 char
     ,c6 char
     );

     create index ix_t1(c1, c4, c2) on test1;

     collect stats on test1 column (c1, c4, c2);



     Show table test1;
     CREATE SET TABLE anomy.test1 ,NO FALLBACK ,
          NO BEFORE JOURNAL,
          NO AFTER JOURNAL
          (
           C1 CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC,
           c2 CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC,
           c3 CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC,
           c4 CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC,
           c5 CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC,
           c6 CHAR(1) CHARACTER SET LATIN NOT CASESPECIFIC)
     PRIMARY INDEX ( C1 )
     INDEX ix_t1 ( C1 ,c2 ,c4 );

     help stats anomy.test1 ;
     05/09/26 13:01:32                     0           C1,c2,c4

Thanks



     
  <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