D
David M C
I have a database set up to handle various administration tasks. Many of
these systems require employees to be selected. For instance, on a purchase
order, the employee who is requesting the goods is input. At the moment I
have a one-to-many relationship between Employees and Orders. However, is
this right?
In the real world, yes, the employee can have many orders, but from a
systems point of view, the two are unrelated. Who is placing the order is
just another piece of information, just like the unique order number, the
delivery address etc. The only relationship is between the OrderDetails and
the Order.
Basically, I'm asking when you should and shouldn't use a relationship, even
though one could argue there is a relationship there.
Dave
these systems require employees to be selected. For instance, on a purchase
order, the employee who is requesting the goods is input. At the moment I
have a one-to-many relationship between Employees and Orders. However, is
this right?
In the real world, yes, the employee can have many orders, but from a
systems point of view, the two are unrelated. Who is placing the order is
just another piece of information, just like the unique order number, the
delivery address etc. The only relationship is between the OrderDetails and
the Order.
Basically, I'm asking when you should and shouldn't use a relationship, even
though one could argue there is a relationship there.
Dave