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

Extracting Domain Names from EMAIL_TXT Field - response (4) by dnoeth

$
0
0

Wha's your TD release?
In TD14 there's a built-in INSTR to find the #2 dot for the SUBSTRING or REGEXP_SUBSTR, before that you might check what UDFs have been installed.
Otherwise it's ugly nesting of POSITIONTSUBSTRING:

SUBSTRING(x FROM 1 FOR POSITION('.' IN x) + POSITION('.' IN SUBSTRING(x FROM POSITION('.' IN x)+1)) -1)

 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>