Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 18 Feb 2010 @ 14:38:53 GMT


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


Subj:   Re: Data Type for a large table
 
From:   Barner, Eric

You can see all of the storage size of data types in the Teradata Data Types and Literals Manual.

But to save you from RTM.

Note the following:

     Integer - 4 bytes

     Decimal
     (1 to 2) digits - 1 Byte
     (3 to 4) digits -  2 Bytes
     (5 to 9) digits - 4 Bytes
     (10 to 18) digits - 8 Bytes
     (19 to 38) digits - 16 Bytes

Since you want 8 significant numbers, either Integer or Decimal(8,0) or Decimal(9,0) will work as they all are stored as 4 bytes, and both types are compressible (if the column qualifies for Compression)


Thanks,

Eric W. Barner



     
  <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