I have three tables that contain data on testing results from the parts we make. Table #1 contains 5 fields used to indentfy each bar. Table #2 contains electrical test data on 14 different tests. Table #3 contains data on 9 different dielectric tests. I need to make a report that contains data from each of these tables. Table #1 has the primary key for each bar #. The problem is I can't use the bar number as the primary key for any of the other tables because each bar can be broken into 42 to 64 different parts. In those other tables each record has the bar number as one field and the part number as the next field, then the rest of the test data. When I write a query on the three tables I get multiple results for each part in the bar. The query is pulling numbers from table #1, then table #2, then #3. It will then pull the same parts number from table #1 and #2 then change to the second part in table #3. I can't write a union query because the amount of fields from each table are different.
Table #1: General Bar Data: Bar # (primary kay), design #, build #, fire date, furnace #
Table #2: Electrical Data; bar #, part #, datetested, phydefect, freq, level, lpri, lsec, rpri, rsec, lkg, Q
Table #3: Dielectric data; bar #, part #, datetested, vhypot, ihypot, thypot, irvol, irres, irtime.
Any suggestions on this relationship problem?
Table #1: General Bar Data: Bar # (primary kay), design #, build #, fire date, furnace #
Table #2: Electrical Data; bar #, part #, datetested, phydefect, freq, level, lpri, lsec, rpri, rsec, lkg, Q
Table #3: Dielectric data; bar #, part #, datetested, vhypot, ihypot, thypot, irvol, irres, irtime.
Any suggestions on this relationship problem?
Comment