my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes remove many to many relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "remove many to many relationship" Watch "remove many to many relationship" New topic

remove many to many relationship

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
how to remove many to many relation ship on a table?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46334
Put something in between.
Man ---- Wife is a one-to-one relationship. (Well, some of the time, anyway )
Brother ---- sister might be a many-to-many relationship. Put something in between; you can have a "sibship" with one brother and one sister and you interpose that between brother and sister
Brother ---- sibship = one-to-many: one brother many have several sibships. Sibship ---- sister = many-to-one: several sibships may lead to one sister.
Brother ---- sibship ---- sister is now no longer a many-to-many.
Don't get me started about those stupid light bulbs.
subject: remove many to many relationship
It's not a secret anymore!