
Import CSV but splitting the import data into two tables
I have a .CSV file with has two sets of data, for
example:
"CustomerID","CustomerName","CustomerAddress"
132,"J Blog","1 London Street,London"
"ProductID","ProductName","Qty"
10056,"13A Socket",3
10008,"Plugs",1
Brake down of the file:
-------------------------------------------------
Customer Information:
"CustomerID","CustomerName","CustomerAddress"
132,"J Blog","1 London Street,London"
Bought:
"ProductID","ProductName","Qty"
10056,"13A Socket",3
10008,"Plugs",1
-------------------------------------------------
What I would like to do is select the csv file and run a
script which will import the data in the file - BUT (here
is the bit I don't know would work) - I would like to put
the Customer Information data in one table and the things
that customer has bought in another table.
Is this possible, if so how would I go about it?
Thanks in advance.
Will