I have a txt file that is uploaded to a FTP site by one of our vendors with multiple columns, most are unusable, 2-4 will be exactly as the data is in our DB. One column in the txt file contains a Unique Key field, this is the field I need to find in our DB and return our Item Code value for each line. There is also another key field (PO_Line Key) that I need to pull over from the DB. Along with the Item Code and Line Key (from our DB), I need the Customer PO, QTY, Sub Total, Ship From, all from the original Txt file. I would like all these fields outputted into a new Txt file. So, I have an idea of how it should be done but not how to do it, the original txt file needs to query our DB to get the Item Code and Line Key, then get the other fields from the original txt file, the output file can be a txt or csv file, not sure if wither one is easier to output.