I am trying to model a cable mapping for devices. Each device has multiple cards, and each of those cards has multiple ports. Since both the number of cards and ports vary, I am confused on how to establish the correct normalized form and relationships that would address one device record having an arbitrary number of cards and those cards having an arbitrary number of ports. Any thoughts?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
This sounds like a really simply one-to-many relationship. For SQL Server, I would write this like:
This allows a The results: The 3 tables can be
If you use
you get these results: This is an image showing the table relationships: |
|||||||||||||||
|