Hi,
Could you provide some guidance on how to handle the following scenario.
I have a target database with 4 phone fields and 4 phone type fields (not normalized). The fields are intended for the following use:
Phone 1: primary phone or home phone
Phone 2: work phone
Phone 3: mobile phone
Phone 4: fax
I have a normalized source phone table. It has columns for phone number and phone type. How would I design a data flow that would put the phone numbers in the correct place for those that have a matching phone type then fill in the other phone numbers with the remaining data? The target fields are as follows:
Phone
PhoneTitle
WorkPhone
WorkPhoneTitle
MobilePhone
MobilePhoneTitle
Fax
FaxTitle
So even though the phone number may be in the Fax field the title stored in the FaxTitle can be something else other than Fax for the phone type.
For Example:
Source Target
PhoneNumber Type PhoneField PhoneFieldType Goes in Target Field (these match phone type in the target)
123-456-7860 Phone --> 123-456-7860 Phone Phone1
231-654-9870 Mobile --> 231-654-9870 Mobile MobilePhone
Then have a second loop that would put the next numbers in any target phone field that does not already have a value
456-789-1234 Wife 456-789-1234 Wife WorkPhone (with a phone title of Wife)
456-789-6547 Secretary 456-789-6547 Secretary Fax (with a fax title of Secretary)
I am not sure if this is clear - hopefully the attached excel file will help.
PhoneNumberExamples.xlsx