EmpNoENameMach_NoType E1BloggsM2Lathe E2SmithM1Drill E1BloggsM3Squeeper E1BloggsM4Moulder 1:m Obligatory:Obligatory EmployeeMachine 1m Mach_NoTypeEmpNo M2LatheE1 M1DrillE2 M3SqueeperE1 M4MoulderE1 EmpNoEName E1Bloggs E2Smith But as two tables – this would give:
EmpNoEName E1Bloggs E2Smith Mach_NoTypeEmpNo M2Lathe M1DrillE2 M3SqueeperE1 M4Moulder 1:m Many end Non-Obligatory EmployeeMachine 1m Get blanks in last column. We could end up with a lot of these depending on type of data, so to eliminate it we define a third table.
EmpNoEName E1Bloggs E2Smith Mach_NoType M2Lathe M1Drill M3Squeeper M4Moulder Mach_NoEmpNo M1E2 M3E1 This is also be a candidate for ‘flexing’ – refer to notes/later lecture (i.e. observing that in theory there should be 3 tables, but only defining 2). The three tables would be: