Hi, I am looking to redesign a database for my site. Where I am having problems is a relation between "part" and "assembly" type thing, where there are multiple bosses per employee. Right now I have it so that every boss has their own table, which has become so dreadfully cluttered and inefficient its come to the point where redesigning is the best option. I was thinking that a hierarchy tree would be the best, and what I thought would be the best would to have 1 table of all employees, then when I go to display them for each department have something like
Code:
$query = "SELECT 'name, desc' FROM 'Parts' WHERE 'assembly' LIKE '$assembly'"
and in my database have 3 fields.
name
desc
assembly
where each part can belong to many assemblies. I know this works for the parts that are only associated with 1 assembly, but what about the parts that have more than 1? the query isnt going to match the assembly, because they are seperated by a delimiter, in my case a "comma ( , )"