Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 20 Dec 2005 @ 14:24:02 GMT


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


Subj:   Re: NULLS to Spaces
 
From:   Michael Larkins

If you are thinking about recreating the table, instead of selecting each column with a coalesce, you can create the table with a constraint of DEFAULT SYSTEM. Meaning that when a null comes into the column and it is character it will automatically store a space or zero when numeric. Then you can add the attribute of compress ' ' or compress 0 on the column and the storage requirements should be the same as compressing null. Plus it guarantees that a null will never be stored accidentally in the future.


Hope this helps,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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