R
Rmarkham
I am having some difficulty figuring out how to import a flat text
data file imported from a barcode scanner into a relational database.
The text data is essentially a flat database with a list of records
with the following attributes:
Item_Lot_Number, Origin, Destination, Piece Number, Scan Date
The relational database setup I am trying to import it into has
Item_Lot_Number, Origin and Destination in one table, Piece Number in
another table, and a third table for Scan Date and Scan type (we scan
on item arrival, item departure, and periodic warehouse inventory
scans). Each Item_Lot_Number can have multiple Piece Numbers
associated with it, and each piece number can have multiple scan
dates.
So essentially, the text outpot from the barcode scanner comes out
like:
Lot123,JFK,LAX,1,10/08/03
Lot123,JFK,LAX,2,10/08/03
....
Lot123,JFK,LAX.101,10/08/03
Lot124,JFK,MIA,1,10/08/03
and so on.
I'd like to have an import function that will take a scan of multiple
items from multiple lot numbers, and properly distribute the data into
the related tables, such that there would be one Lot123 record in the
Item_Lot_Number table with all 101 individual pieces related to it. I
can't seem to figure out exactly how to do so though. Any assistance
would be immensely appreciated.
data file imported from a barcode scanner into a relational database.
The text data is essentially a flat database with a list of records
with the following attributes:
Item_Lot_Number, Origin, Destination, Piece Number, Scan Date
The relational database setup I am trying to import it into has
Item_Lot_Number, Origin and Destination in one table, Piece Number in
another table, and a third table for Scan Date and Scan type (we scan
on item arrival, item departure, and periodic warehouse inventory
scans). Each Item_Lot_Number can have multiple Piece Numbers
associated with it, and each piece number can have multiple scan
dates.
So essentially, the text outpot from the barcode scanner comes out
like:
Lot123,JFK,LAX,1,10/08/03
Lot123,JFK,LAX,2,10/08/03
....
Lot123,JFK,LAX.101,10/08/03
Lot124,JFK,MIA,1,10/08/03
and so on.
I'd like to have an import function that will take a scan of multiple
items from multiple lot numbers, and properly distribute the data into
the related tables, such that there would be one Lot123 record in the
Item_Lot_Number table with all 101 individual pieces related to it. I
can't seem to figure out exactly how to do so though. Any assistance
would be immensely appreciated.