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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:24:58+00:00 2026-05-17T21:24:58+00:00

I have several tables in my ERD which which I would like to combine

  • 0

I have several tables in my ERD which which I would like to combine in a relational manner.

I have several use cases, but I completely lost track of what kind of relations to use between the tables.

  • Every user can work on multiple projects.
  • Every user has one specific role per project (Manager, Contributor, User)
  • Every project has multiple datasets (currDataXXX columns in ‘projects’) which need to be linked to the table data.
  • The application will keep track of datasets that have been added by users. Thus I assume I need a relation between tables ‘users’ and ‘data’ too?

I used a bridge model in table ‘roles’ with 2 PK’s to link the users and projects together and defining a role for that user and project at the same time (is this the correct way?).

Could somebody please help me assist the correct relations between the tables? and maybe suggest columns (which are missing) for tables (or tables as a whole of course).

Kind of lost sight of this.

With kind regards,

B.

REVISED ERD:
alt text
(Original image: http://i55.tinypic.com/2mq2ejs.jpg)

  • 1 1 Answer
  • 3 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-17T21:24:59+00:00Added an answer on May 17, 2026 at 9:24 pm

    Every project has multiple datasets (currDataXXX columns in ‘projects’)

    This means that there is a one-to-many relationship from project to dataset. As such, the project ID should be a foreign key on the dataset table, while the currDataXX columns should be removed from the project table. (The current design represents a denormalisation.)

    Having done this, you now have two many-to-many relationships between project and user – one with a link entity of roles, and one with a link entity of dataset. Such relationships are normally redundant – in this case, I would assume that a) only users with a role on a project can add datasets, and b) that a single user can add many datasets for a single project.

    If both of these assumptions are correct, then there is actually a one to many relationship from role to dataset, and therefore the role ID should be a foreign key on the dataset table, while the user and project IDs become redundant on the dataset table and can be removed. Like this:

    +----------+    +----------+    +----------+
    |   User   +---<|   Role   |>---+  Project |
    +----------+    +----+-----+    +----------+
                         |
                        /|\
                    +----------+
                    |  Dataset |
                    +----------+
    

    [If assumption b) is incorrect, then role and dataset can be combined into a single table, while if assumption a) is incorrect then role and dataset remain two distinct linking entities, unrelated to each other.]

    EDIT – updated proposed structure, following Rhizosis’ edits:

                    +----------+
                    |   Role   |
                    +----+-----+
                         |
                        /|\
    +----------+    +----------+    +----------+
    |   User   +---<|  Users/  |>---+  Project |
    |          |    | Projects |    |          |
    +----------+    +----+-----+    +----------+
                         |
                        /|\
                    +----------+
                    |  Dataset |
                    +----------+
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several tables which looks like these below: <table id=table1> <tr> <th>Item</th> <th>Price</th>
I'm a bit lost here... I have several tables I'd like to pull a
I have working website in PHP with a MySQL backend which has several tables
Here's the setup: I have several tables that hold information for data objects which
I would like to do a search engine for my webpage. I have several
I have several different tables in my database and I'm trying to use Sphinx
I have several tables from which I need to display data. Schools ------- id
I have several tables that have IsActive column, which indicates whether a record is
I have several tables in my HTML markup which don't have any attributes and
I have several tables which reference one main table using foreign keys. My goal

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.