I can give you some suggestions on how to combine the data from the 2 data tables (see below)
But, from the example data you show, I cannot see why you would want to do that.
Ending up with something like the following in a single data table:
GRP CAT SUB
a1 b2 c6 Laptops
a2 b3 c7 Desktops
a3 b4 c8 Servers
a1 b1 c5 ______
a4 b3 c6 ______
a7 b8 c9 ______
doesn't look to me like it would be of much benefit to you.
"How do I combine these files so that the key will match up with the second .dbf which is the "master" file that has all the jumbled up information, and replace the master files information with the keys?"
1. You could open each DBF data table into Excel 2003 or earlier and then combine all the various worksheets with Cut & Paste into a single Excel worksheet.
2. Then with your cursor Select all populated Rows & Columns (do not select those empty Rows and/or Columns beyond what you need).
3. Then do a Save As... using the DBF4 format
So now you would have the data from all the desired DBF files into one single DBF file.
Convert it to a MySQL table in the manner you choose.
"The information would then read off a table in a database and would make it look like ordered information combing all of the "keys" information into the master tables information with each corresponding row."
Again I am not certain of your programming background so again I will sincerely apologize in advance if what I am going to say is an insult to you. It most certainly is not meant to be that. But some individuals on this forum really don't have a clue about the difference between DATABASE's, and APPLICATION's.
So, at the risk of unwantingly insulting you, here goes....
An APPLICATION is what a user interfaces with to get data out of and back into the data tables within a DATABASE - regardless of the database type. An APPLICATION is created with Programming in some language.
Your Retail Application is just such. And it is written in some language (such as -
VB,
VB.Net, C++, Access, Foxpro, etc.). That Application USES the MySQL database to contain its data tables which in turn contain the various pieces of data that are needed to run your business. MySQL is not the Application and it is not a language that can write an Application.
Just putting the DBF file data into a MySQL data table will not, by itself, cause the new data to suddenly appear in your user's application.
You have not indicated how you intend to have this new data "appear" as "information pop up with the corresponding product information."
Unless your application already uses an existing MySQL data table to do this and you will be adding this new data to that existing data table, you will not 'magically' begin working like you suggest just because you put the DBF data into some new MySQL data table.
"combine these files so that the key will match up with the second .dbf which is the "master" file"
If you cannot do this by manipulating the 'raw' data in the data tables, then this will have be be accomplished with Programming within your Application.
Good Luck