Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Mon, 01 Jan 2007 @ 11:09:50 GMT





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




Subj:   STRING functions: Counting character occurrences
 
From:   Kumar Veerappan



As a newcomer to Teradata SQL is there a way of counting how many of a particular character occurs in any given string?

e.g. Count 'A' in 'AACCFFAAGRTA' gives the result 5

And is there a function to get the actual defined size of a column.?

Example.

     EMP_NAME CHAR(30);
     EMP_ADD VARCHAR(100);

Defined size of EMP_NAME is 30 and EMP_ADD is 100.





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 09 Nov 2008