I have a big list of Companies, CompDirectory. Each of them has at least one NAICS code (six digit industry code)but no more than 6.
CompID (primary key)
CompName
Street
City etc.
NAICS1
Naics2
Naics3
Naics4
Naics5
Naics6
I've got a second table, ProductCategory, where each NAICS code has its corresponding description/title:
ProductId (primary Key)
ProductTitle (eg: Battery Mfg)
NAICS (eg: 332620)
I need to be able to query by ProductTitle and view each company that makes that product.
One company can have up to 6 Naics and one Naics can have multiple companies, hence, it's a many to many, but cannot figure out how to design the damn tables and keep thinking I need a third table.
Maybe you guys can help, I am stuck on it for a week now and the thick fog has not lifted yet...
CompID (primary key)
CompName
Street
City etc.
NAICS1
Naics2
Naics3
Naics4
Naics5
Naics6
I've got a second table, ProductCategory, where each NAICS code has its corresponding description/title:
ProductId (primary Key)
ProductTitle (eg: Battery Mfg)
NAICS (eg: 332620)
I need to be able to query by ProductTitle and view each company that makes that product.
One company can have up to 6 Naics and one Naics can have multiple companies, hence, it's a many to many, but cannot figure out how to design the damn tables and keep thinking I need a third table.
Maybe you guys can help, I am stuck on it for a week now and the thick fog has not lifted yet...