Advertisement

08.01.2008 at 04:13AM PDT, ID: 23613769 | Points: 125
[x]
Attachment Details

Guess Email Address - Bulk Update

Asked by patelajk in MS SQL Server

Hi

I have a table full of contacts and it stored data like:

Contact_ID | Firm_ID | First_Name | Last_Name | Email_Address

Some email addresses are null or blank for whatever reason. What I am trying to do is to guess the Email Address by analysing other contacts tagged to the same firm and enter this into the database

So if there is some one who has an email address like first_name.Last_Name@Company.com and belongs to firm id 0f 140, then any contacts that have no email address should be updated with an email address in this format as we are guessing that most email addresses at this company are goin to be in the same format.


Problem is I am not sure how to write the SQL. Any ideas??

Thanks in advanced
Start Free Trial
[+][-]08.01.2008 at 07:23AM PDT, ID: 22138512

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.01.2008 at 07:25AM PDT, ID: 22138533

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628