Hi All, I am totally stumped on this. My company does military sales, and the military buys its parts based on NSN numbers. An NSN number might have just one part number for it or it might have many different PN's from different manufacturers..I have two tables that are already populated with 10,000 records so I would not be adding any records, simply viewing. I exported the information from a paid service that provides this history... :
Table 1 "Products" has Fields:
National Stock Number ("NSN") (An NSN can have mutliple part numbers so each NSN might have multiple records)
Description
Weight
Part Number (A NSN has many different Part Numbers)
Table 2 "Contracts (Orders)" has fields
Contract No (A contract can have many NSN numbers therefore could have multiple records)
NSN
Total Price
Company Awarded the Contract
What I am trying to do is figure out how to do the relationships to allow a database to search by NSN to see all the contracts for that NSN or to search by Contract and see what NSN's are on that contract. For example, in the PRODUCTS table, if the NSN is 123-0987 and it has 3 part numbers, there will be 3 records for that NSN number. Any help or discussion would be greatly appreciated...
EDIT: I should note that not ALL NSN's have contracts which is why I need the info in two tables...