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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:59:54+00:00 2026-05-24T18:59:54+00:00

I have a relationship between two entities like so. A<<—–>>B. A = Employees B

  • 0

I have a relationship between two entities like so. A<<—–>>B.

A = Employees

B = Areas

An Employee can belong to many Areas and an Area can have many Employees. I would like to add a zone each employee is supposed to be at for each area… (can be as simple as a number)

So say in area1, employee1’s zone might = 4, but in area2, employee1’s zone would = 2.

Could anyone give me any thoughts on how i might do this? I’m just a little confused about the architecture of something like this.

I previously had it to where it was just A<<—–>B which made things much more simple because i just had a zone attribute for each employee that i just changed, but with a many-to-many it complicates things a bit.

Thanks.

  • 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-24T18:59:54+00:00Added an answer on May 24, 2026 at 6:59 pm

    You can create a third entity zone Z with a one-to-many relationship to area B. Each area B can have several zones Z, but each zone Z belongs to exactly one area B.

    Z<<----->B
    

    Now each employee A has one and exactly one zone assigned for each area. So you need a many-to-many relationship between zone Z and employee A. One zone Z in an area B can have several employees A assigned to it; one employee A has several zones (one for each area B).

    A<<----->>Z
    

    That should work. Now it is enough to know a zone Z of an employee A – you can look up the corresponding area B.

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

Sidebar

Related Questions

I have two entities Foo and Bar with a Many to Many relationship between
I have a many-to-many relationship between the two entities called events and artists, both
I have a one to many entity relationship between two entities: EntityP (Parent) <-->>
I have a many-to-many relationship defined between two entities using an association table and
I have a many-to-many relationship between two entities - Media and MediaCollection. I want
I have a many-to-many relationship between two entities. As part of a batch process,
Suppose i have a one to many relationship between two model entities Entity One
I have a one to many relationship between two tables. The many table contains
I have a many-to-many relationship between two tables, let's say Friends and Foods. If
I have a many-to-many relationship between photos and tags: A photo can have multiple

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.