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 Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016