Reputation: 367
I have Corporate table which collect Organizations. Each organization could has several branches. If there are many branches it is also the main one - head office.
How is better to make it?
I suppose a second way could be a preferable but I need than some algorithm to be sure that there are no 2 head_offices for corporate.
Upvotes: 1
Views: 42
Reputation: 6528
You can make three tables:
Upvotes: 3