I've got some tables in my MySQL DB and I need to create some other tables of the data in those existing tables based on data in an excel spreadsheet.
My current tables are:
tbl_departments
tbl_classes
tbl_vendors
My excel spreadsheet has a master list showing all of the classes, vendors and departments. The data shows all of the classes and the vendors associated with those classes and the department that said classes belong to.
So, for example, the class "Jeans" has multiple rows listing "Wrangler", "Carhartt", "Key" etc. and the department that jeans belongs to.
How do I use the spreadsheet to create a new table like tbl_classes_vendors
and tbl_departments_classes
so I can search the classes and pull up a list of vendors based on a department?