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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:54:35+00:00 2026-05-16T11:54:35+00:00

I am trying to lay out the concept for a Relational DB and I

  • 0

I am trying to lay out the concept for a Relational DB and I ran into some conceptual Problems:

  1. If I have multiple discrete Entities that are “nested” in each other/have a hierarchy e.g.:

Bosses can have multiple Employees. These employees have different Projects they do and One Project has again multiple sections.

So

B1-Bn:

      E1-En

           P1-Pn

                Section1 -SectionN

How would that be best mapped in a database?

Or in other words, how is this hierarchy best mapped in a relational db?

  1. Now I have Costumers that interact with these Employees.

They are met by the bosses
Then they decide which employee will work for them.
Then they are assigned Projects, with one or more sections.

How would that be best mapped.

  1. the Relations 1-n, m-n, 1-1: Can they be used for e.g.:

This is a Foreignkey because of the 1-n relationship.
This is a ManytoManyField because of the m-n relationship.

  1. And is there a excellent online tool to better understand/visualize that.

Thanks so much for your time!

  • 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-16T11:54:36+00:00Added an answer on May 16, 2026 at 11:54 am

    You may want to follow a course on relational database design; this subject takes more than a few days to explain or master. But you are on the right track.

    The first thing you may be seeing is a hierarchy, but before you know it there will be relationships that aren’t hierarchical, so a network is formed.
    This is why relational databases do not work with hierarchies.

    You identify different types of entities and have one table for each type.

    For each entity type you identify the properties of such entities – each property will be a column of the table.
    If a property does not have an atomic value, but a structured value, these structured values must be regarded as an entity, and must be given its own table, and the property will be a foreign key referring that table.

    In this way, you will form a network of tables linked by foreign keys. This is called an entity-relationship diagram. Many designers advocate creating such a diagram first, without mapping the entity types to tables directly. They allow many-to-many relationships between entity types in the diagram. A foreign key between tables on the other hand is always many-to-1 or 1-to-1. So these designers have an “implementation” step in which they introduce an additional table for each many-to-many relationship. Personally I don’t use many-to-many relationships in my diagrams to begin with.

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

Sidebar

Related Questions

I have a webpage in asp.net that I am trying to lay out and
I've got some problems while trying to lay out my site. I'm using Blueprint
I am trying to lay out objects on a Storyboard using the interface builder
First I'll lay out what I'm trying to achieve in case there's a different
I'm thinking about trying MongoDB to use for storing our stats but have some
I am trying to lay out a table-like page with two columns. I want
I'm trying to lay out a page with an image sprite which holds awards
I'm trying to figure out how to lay out two of my Django models
I'm trying to figure out how to best lay out a set of Restlet
Just need help as I have been trying sort this out for ages now.

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.