I think what you can do on your work_machine table is have references to the workid and machineid...
work_machineID | workID | machineID
1 | A | 1
2 | B | 3
3 | B | 5
Then just select from this table where workID = 'A';
Last edited by kanaku; Dec 30th, 2008 at 1:43 am. Reason: wrong label =(