I\'m trying to create a relation where any of four different parts may be included, but any collection of the same parts should be handled as unique.
Example: An ass
The only way I can think of handling this without additional triggers/programming would be to have a single "None of the Above" value in each of the referenced tables, so that your test would look like
INSERT INTO test VALUES (1, NO_LOCATION, NO_WORKGROUP, NO_PROGRAM),
(1, NO_LOCATION, NO_WORKGROUP, NO_PROGRAM)
Where the NO_*
identifiers are the right type/length for your ID columns. This would then fail, as you'd expect it.