Hi All,
I have an extract in csv format that I want to import into a database to be able to use it with other data sources.
In the file I have 3 columns: Company Ref, Company Name, Contact email
If we have 3 contacts for a supplier then there will be 3 lines e.g.
AAA001,xyz,john@xyz.com
AAA001,xyz,emma@xyz.com
AAA001,xyz,chris@xyz.com
What I want to do is when I import the file, is add a count of contact for the supplier, e.g:
AAA001,xyz,1,john@xyz.com
AAA001,xyz,2,emma@xyz.com
AAA001,xyz,3,chris@xyz.com
So I can convert the data into a table to show one line per supplier and a column for contact 1, contact 2, etc. (It may possible to import straight in to this format but I'm not sure).
AAA001 xyz john@[EMAIL="xyz.comemma@xyz.com"]xyz.com[/EMAIL] [EMAIL="emma@xyz.com"]emma@xyz.com [/EMAIL]chris@xyz.com
We have a maximum limit of 12 contacts per supplier on this dataset.
Any help you can provide will be great
I have an extract in csv format that I want to import into a database to be able to use it with other data sources.
In the file I have 3 columns: Company Ref, Company Name, Contact email
If we have 3 contacts for a supplier then there will be 3 lines e.g.
AAA001,xyz,john@xyz.com
AAA001,xyz,emma@xyz.com
AAA001,xyz,chris@xyz.com
What I want to do is when I import the file, is add a count of contact for the supplier, e.g:
AAA001,xyz,1,john@xyz.com
AAA001,xyz,2,emma@xyz.com
AAA001,xyz,3,chris@xyz.com
So I can convert the data into a table to show one line per supplier and a column for contact 1, contact 2, etc. (It may possible to import straight in to this format but I'm not sure).
AAA001 xyz john@[EMAIL="xyz.comemma@xyz.com"]xyz.com[/EMAIL] [EMAIL="emma@xyz.com"]emma@xyz.com [/EMAIL]chris@xyz.com
We have a maximum limit of 12 contacts per supplier on this dataset.
Any help you can provide will be great