danke! -----Original Message----- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 2:12 PM To: CF-Talk Subject: Re: OT SQL question
Eric Creese wrote: > I want to verify email addresses that are entered into one of my apps. > Unfortunately I already inherited close to 100k email address. So I want to > do the following in SQL via a stored procedure so I can write the bad > addresses out to an error table. Need to check if there is an @ sign, if the > TDL is valid from the list I have from ICANN. When I check through each like > statement but that is not going to work. Any other ideas? This can not be > done through a CF page but eventually the result will b posted to one. First create a table with all your TLDs and then: INSERT INTO bademail (personid,email) SELECT DISTINCT personid, email FROM People LEFT JOIN tlds ON (people.email LIKE '[EMAIL PROTECTED]' || tlds.tld) WHERE MbrExpireDate > '2/1/2005' AND tlds.tld IS NULL This presumes standard SQL, i.e. || is the concatenation operator and _ means exactly one character. Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193728 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54