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

  • SEARCH
  • Home
  • 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 8855115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:03:20+00:00 2026-06-14T14:03:20+00:00

I wasnt sure how best to word this title, or even explain the problem

  • 0

I wasnt sure how best to word this title, or even explain the problem but here goes…

I am designing an SQL database with several tables that can be linked together.
i.e.

TABLE a ID1 CAN BE JOINED TO TABLE b ID1
TABLE b ID2 CAN BE JOINED TO TABLE c ID1
TABLE d ID1 CAN BE JOINED TO TABLE a ID5

etc.

Basically any row in any table can be linked to any other row in any table (including itself)

i was going to create a single “Connections” table with the following columns…

Table 1 Name VARCHAR()
Table 1 ID   INT()
Table 2 Name VARCHAR()
Table 2 ID   INT()

Acting as a many to many joining table but with columns for the table as well as ID of each side of the connection. I get the feeling this isn’t best practise though. Any thoughts?
I cant believe i need to create an individual table for each permutation of connection!

  • 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-06-14T14:03:21+00:00Added an answer on June 14, 2026 at 2:03 pm

    This problem is common, opposing the normalized model to the denormalized model.

    To implement a meta-model (one table to store all relations) most commonly has the following issues:

    • Slower requests in case of 0..n relations (at least)
    • No native management of relational constraints (on cascade…)
    • Needs an additional applicative layer to parse the relations

    Then if you don’t mind it, your solution is fine.

    Cheers,
    S.

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

Sidebar

Related Questions

The title might not explain my problem fully but I wasn't sure how to
I'm sorry if this title doesn't describe the problem properly but I wasn't sure
I am not too sure the best way to word this, but what I
I wasn't sure what the best way to word this question is but basically
I wasn't sure what to title this question. Here's my goal: On page one,
Wasn't quite sure how to word this but let's say I've used ssh to
Okay I wasn't really sure how to word this question, but basically what I
Sorry wasn't sure how to best word this question. My scenario is that I
I'm not sure how to best word this, so I'll give it a shot
I wan't sure how to word this question so I'll try and explain. I

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.