Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 07 Jun 2007 @ 15:42:03 GMT


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


Subj:   Re: Designing wide (fat) tables
 
From:   Diane Wilson

If the large fat table contains many columns sharing the same values across mulitple rows, then a lookup table may be the way to go.

Eg

Fat table

     col1   col2   col3   col4 col5   etc.....
        1      1      1      1    2
        1      1      1      1    3
        1      1      1      1    4
        2      1      1      1    2
        2      1      1      1    3
        2      1      1      1    4
        2      1      1      1    5

Look up table

     Unique_ID col1   col2   col3   col4
     100          1      1      1      1
     200          2      1      1      1
     300          3      1      1      1

Thereby reducing the width and physical size of the fat table

New Fat table

     Unique_ID   col5 ......
     100           2
     100           3
     100           4
     200           2
     200           3
     200           4

Regards

Di



     
  <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