A sample CSV:
Store,Door,Start Date,Time,Sun,Mon,Tue,Wed,Thr,Fri,Sat
BR01,1,20060612,0,0,0,0,0,0,0,0
BR01,1,20060612,100,0,0,0,0,0,0,0
BR01,2,20060612,200,0,0,0,0,0,0,0
BR01,2,20060612,300,0,0,0,0,0,0,0
BR01,Combined,20060612,0,0,0,1,0,0,0,0
BR01,Combined,20060612,100,0,0,2,0,0,0,0
Totals,Door 1,20060612,0,3,0,11,0,5,0,19
Totals,Door 2,20060612,0,0,0,0,0,0,0,0
Totals,Combined,20060612,0,144,210,12,0,5,0,371
The trailer is the Totals part, but includes multiple lines. I need to store the data in body part in a table, and put the trailer part in another table. How to debatch the trailer?
Thanks…