Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 02 Jan 2007 @ 13:00:58 GMT


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


Subj:   Re: STRING functions: Counting character occurrences
 
From:   Dieter Noeth

Don't use DISTINCT, because this will result in a heavily skewed spool for a large table.

Better use:

     Select TYPE(Your_col_name) from Your_Table group by 1;

Or even better (without any table access):

     select TYPE(tablename.col_name)

Dieter



     
  <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