Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4069156
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:27:57+00:00 2026-05-20T16:27:57+00:00

I am redesigning a local IP management site, and need some help. Currently, there

  • 0

I am redesigning a local IP management site, and need some help. Currently, there is a foreign key building ID associated with a certain subnet ID, so that the client knows which building the subnet is in. However, a problem that has risen is that a subnet may be split across multiple buildings. Now that the subnet-to-building paradigm no longer holds, I am at a loss for the correct way to manage this.

One option that comes immediately to mind and just seems bad is to change the building id field to a string of comma-separated building ID’s. It’s quick and it works, but it gives me a bad feeling.

Another idea that has come to mind is creating a BuildingIDTuple table, where multiple rows may exist mapping a subnet id to a buildingid.

subnet id | building id
------------------------
    1     |      2 
    1     |      3

This method seems cleaner and more future-proof, but I can also imagine the sql queries causing many headaches.

The ideal method I would think is to have an array of building ID’s in the subnet table, but I don’t think those exist.

So, what would be the best way to design what I am doing? Any help would be very much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:27:57+00:00Added an answer on May 20, 2026 at 4:27 pm

    Just create the extra table, the required join will never be that complicated.

    Parsing a comma-separated list or whatever will be what gives you a headache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're designing a database in which I need to consider some FK(foreign key) constraints.
I am redesigning a database and I need some help. I have two User
I'm currently working on redesigning an application which is building a model from input
I'm currently redesigning a site and considering whether or not too use .load for
I'm currently redesigning a website and have run into an issue with some elements
My company is redesigning our intranet site and decided to go with DotNetNuke as
I'm redesigning a class constructor in C++ and need it to catch an unspecified
We're in the process of redesigning the customer-facing section of our site in .NET
I've been tasked with redesigning part of a ms-sql database structure which currently involves
So, I am writing some sort of a statistics program (actually I am redesigning

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.