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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:18:34+00:00 2026-06-01T04:18:34+00:00

I have two tables, Users and People, both of which share a common attribute,

  • 0

I have two tables, Users and People, both of which share a common attribute, email address, of which they should be allowed to have many email addresses.

I can see three options myself:

  1. One link table with redundant columns:

    • Users [id,email_id] and People [id,email_id]
    • EmailAddress [id,user_id,person_id,email_id]
    • Emails [id,address,type]
  2. Two link tables without redundancies:

    • Users [id,email_id] and People [id,email_id]
    • PersonEmail [id,person_id,email_id]
    • UserEmail [id,user_id,email_id]
    • Emails [id,address,type]
  3. No link tables with redundant columns:

    • Users [id] and People [id]
    • Emails [id,address,type,user_id,person_id]

Does anyone have any idea what would be the best option, or if there is any other ways? Also, if anyone knows how to implement or feel it is better to have link tables without the generated id column please also specify.

Update: a User has many People, a person belongs to a User

  • 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-01T04:18:35+00:00Added an answer on June 1, 2026 at 4:18 am

    First off, the relationship between user and e-mail is 1:N, not M:N, so in any case you don’t need the “link” table EmailAddress.

    You need to decide which of these possibilities is true for your application:

    1. User is always person.
    2. Person is always user.
    3. There can be a person that is not user and there can be a user that is not person.

    Option 1:

    Assuming the option (1) is the correct one, the logical model should look like this:

    enter image description here

    The symbol between Person and User is “category”, which at the level of the physical database can be implemented either:

    • as a “1 to 0 or 1” relationship between separate tables Person and User,
    • or a single table containing both person and user fields, where user fields are NULL for persons that are not also users.

    If you have…

    • many user-specific fields,
    • there are user-specific foreign keys,
    • new kinds of persons could be added in the future
    • and you don’t need to squeeze-out every last drop of performance,

    …choose the implementation strategy with two tables.

    If there are:

    • relatively few user-specific fields,
    • there are no user-specific relationships,
    • low “evolvability” is acceptable
    • and performance is of high importance,

    …choose the implementation strategy with the single table.

    Similar analysis can be done for each of the remaining possibilities…

    Option 2:

    enter image description here

    Option 3:

    enter image description here

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

Sidebar

Related Questions

I have a table of users, some of which share an email address. I
I have two tables: Users: ID, first_name, last_name Networks: user_id, friend_id, status I want
I have two tables- users and language with a foreign key link of their
hope someone can help. I have two tables: Users -UserID -UserName UsersType -UserTypeID -UserID
I am using EF4 with the EDM designer. I have two tables : Users
If I have two tables - Logins and Users, as follows: Logins LoginIdNo UserIdNo
We have two tables - Tasks and TasksUsers (users assigned to task). Task has
I have two tables: sites has_many users users belongs_to sites Is it better that
I have Two tables. 1.Users table (Username , Name) 2.Picture table( ID , Username
I have two tables, users and hra. A user can only have one record

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.