Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have two csv files. One csv has contract header information (ex. Customer, Start Date, End Date). The Second csv file has the detail information (item, price, etc.). There is no common key between the two files, but it does not matter (yet) because each header in the first csv file should be mapped to all of the items in the 2nd csv file.
I am trying to load the information into a mySQL database. In the database there is a header table and a detail table. The part I am not sure how to handle is mapping the two files together. Im thinking that I would need to iterate through the header file and then pull all records from the 2nd file.
This is what I have so far, but the header row is being multiplied for each line.
Thanks for the reply!
INPUT FILES
Header File
Item File
OUTPUT
1. OneCustomerID,OneCustomerName, OneStartDate, OneEndDate
2. TwoCustomerID,TwoCustomerName, TwoStartDate2, TwoEndDate
The above is an idea of the output i'm expecting, but I am having trouble figuring out how to join the records in this way. I've tried adding a column called "ID" to each of the two files and I put a "1" in this field for all the rows. After doing this I was able to use the tMap to join the files, but its basically doing as you say main rows * look up rows.