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

Extracting Domain Names from EMAIL_TXT Field - forum topic by freon73

$
0
0

I am new to TD and am attempting to pull the domain names (.com, .net, .ca) from email address.    SELECT COUNT(DISTINCT(email_txt)) FROM sch.table WHERE email_txt  LIKE  ('%us');  An issue I run into is for the domains that I do not know.  How to use SELECT TRIM or SELECT SUBSTR to count and group the ones that are not known?  Another issue is some are 3 CHARS like .com and some being 2 CHARS like .ca  Any thoughts?  Help is appreciated.  Cheers!!

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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