Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Count the number of words in a phrase using Teradata SQL - response (3) by Raja_KT

$
0
0

Hi Sreechand,
Sorry, I did miss  the subject line   :)  "...using-teradata-sql"..
Here it is :

 SELECT (char_length('Hi How are you doing today') -char_length(REGEXP_REPLACE('Hi How are you doing today', '[\s]', '', 1, 0, 'c'))) +1

Cheers,
Raja


Viewing all articles
Browse latest Browse all 14773

Trending Articles