>select Table2.*, Table1.OecName from Table2 inner join table1 on Table2.Owner=Table1.oecID ; >union ; >select Table2.*, Table1.OecName from Table2 inner join table1 on Table2.Engineer=Table1.oecID ; >union ; >select Table2.*, Table1.OecName from Table2 inner join table1 on Table2.Contractor=Table1.oecID ; >into table EverybodyWithDescrActually it'll create three records per projectid not one. If that's the goal than
select Table2.projid, Table1.OecName As name, "O" AS recordtype ; from Table2 inner join table1 on Table2.Owner=Table1.oecID ; union ; select Table2.projid, Table1.OecName As name, "E" AS recordtype ; from Table2 inner join table1 on Table2.Engineer=Table1.oecID ; union ; select Table2.projid, Table1.OecName As name, "C" AS recordtype ; from Table2 inner join table1 on Table2.Contractor=Table1.oecID ; into table EverybodyWithDescr