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: