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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:21:07+00:00 2026-06-02T17:21:07+00:00

I am struggling to model a scenario and came across a question that, while

  • 0

I am struggling to model a scenario and came across a question that, while normalizing table should we consider FK also as key to determine whether a field should be in same table or other table?

For example, I have Users and Teams tables (One user may ZERO or more teams considering different sports).

Owner                                       Teams

 -----                                    -------- 
OwnerID ---PK                              TeamID  ---PK
OwnerName                                  OwnerID    ---FK  
                                          TeamManager
                                          TeamLogo

If we observe this relation, TeamManager and TeamLogo are completely dependent (functionally) on only TeamID not at all dependent UserID (am I correct in understanding this?). Should we have another table for UserID and TeamID to establish relationship?

Any suggestions would be really helpful.

This is not a home work. I am modeling for a website and improve my knowledge on normal forms to get best scalable database design.

Thank you,

  • 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-02T17:21:08+00:00Added an answer on June 2, 2026 at 5:21 pm

    … should we consider FK also as key to determine whether a field should be in same table or other table?

    Being a child endpoint of a referential integrity is orthogonal to being a key (i.e. FK child may or may not be a key). The name “foreign key” only refers to the parent endpoint, which is required to be a key (in most DBMSes).

    So, in your example, Teams.OwnerID does not have to be a key (and actually isn’t, judging on your description).

    If we observe this relation, TeamManager and TeamLogo are completely dependent (functionally) on only TeamID not at all dependent UserID (am I correct in understanding this?).

    Yes, you are correct.

    The Teams is in 3NF because all attributes functionally depend on key, whole key and nothing but the key (so help me Codd 😉 ).

    Here is why:

    • Nothing depends on a key subset, so this is 2NF (in fact, there is no “key subset” since key is just one attribute).
    • As you already noted, TeamManager and TeamLogo do not functionally depend on OwnerID, so you do not have a transitive dependency, so this is 3NF.

    Should we have another table for UserID and TeamID to establish relationship?

    For modeling a simple 1:N relationship like this: no.

    Modeling M:N would be a different matter.


    So unless there are some additional details you didn’t mention, this model looks nicely normalized to me.

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

Sidebar

Related Questions

I'm struggling to work out how to validate a field in Model A that
I've been struggling to create a form for a Mongoid model that has an
I've been struggling with this for a good while now. I'm trying to determine
I've been struggling with this for a while see my previous question How to
I'm struggling to get my head around what should happen when rebuilding the model
I have a scenario that I'm struggling to find a clean solution to. In
im struggling with syntax here: hopefully this question is v simple, im just miising
I'm struggling with paperclip and adding the attached images to albums. Should I be
I'm struggling to decide on a good way to structure my object model /
Here is the situation I am struggling with. I have an Object Model: public

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.