Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • The one caveat with this is the possibility of having orphan records in X, which have no junction records in X_A, X_B, or X_C. This can be handled with triggers and/or stored procedures. Commented Jul 14, 2017 at 20:17
  • That solution is not equivalent to what OP wants. Commented Jul 14, 2017 at 20:30
  • @TulainsCórdova: ... because? Commented Jul 14, 2017 at 20:57
  • With that solution, how would you manage the fact that the relationships X->A and X->B have to be mutually exclusive? Commented Jul 14, 2017 at 21:57
  • The issue is this would create many-to-many relationships. As soon as you add association tables, there's nothing preventing one x object from being attached to multiple A objets. That's not a deal breaker, but it's less than ideal. Commented Jul 15, 2017 at 1:41