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 3407118
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:42:42+00:00 2026-05-18T05:42:42+00:00

I have a hierarchical data structure which, as far as I can see, needs

  • 0

I have a hierarchical data structure which, as far as I can see, needs to have a series of successive many-to-many relationships.

It goes something like this:

Company
Account
Treaty
Benefit
Policy
Person

With the following relationships:

Company 1---8 Account
Account 1---8 Treaty

…all still fun

And then, many to many:
Treaty 8---8 Benefit, so I create the relational table TreatyBenefit, and do:

Treaty 1---8 TreatyBenefit 8---1 Benefit

Now, for a specific Treaty and a specific Benefit (i.e. a TreatyBenefit) there can be many Policies. But again, a single policy can also fall under multiple TreatyBenefits

So, then I have TreatyBenefit 1---8 TreatyBenefitPolicy 8---1 Policy

And then of course, the same applies to Person, so I also then get:

TreatyBenefitPolicy 1---8 TreatyBenefitPolicyPerson 8---1 Person

What I would like to know is if there are any conventions for naming tables so that you can avoid names that become so long that they are essentially meaningless? Or are there better approaches to the design that avoids this kind of structure entirely?

Thanks
Karl

  • 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-18T05:42:42+00:00Added an answer on May 18, 2026 at 5:42 am

    IMHO unless there are other strong, wideley accepted, meaningful business-centric names for these entities / concepts, then I would stick with the trusted Many:Many mangles that you’ve described above.

    Also, each of the 6 entities you’ve listed are reasonably concise, so there seems little point in abbreviating e.g. Ben, Per, Pol, Acc, Co etc would cause more confusion than benefit.

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

Sidebar

Related Questions

I have some hierarchical data - each entry has an id and a (nullable)
I have a table containing typical hierarchical data for tasks with an arbitrary level
I have a bunch of hierarchical data stored in an XML file. I am
I have a TreeView that allows users to select certain elements of hierarchical data
I have a table with well over 5 millions rows, that contains hierarchical data
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I need to create a join query for hierarchical data across 2 tables. These
I want to generate an hierarchical data representation, more like a family tree rather
Have just started using Google Chrome , and noticed in parts of our site,
Have you ever seen any of there error messages? -- SQL Server 2000 Could

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.