Too many, many to many?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmo187265
    New Member
    • Aug 2018
    • 43

    Too many, many to many?

    Background:
    I have slowly and painfully been working on creating an Access database for sports cards.

    Database Needs:
    For the purpose of this post, a user (me) will need to be able to search for cards by Sport, Location, or Team Name (or a combination thereof).

    Problem/confusion:
    Could someone kindly look at my screenshot to see if I am overthinking my table relationships? Everything is so connected with many to many relationships and I guess I just was not expecting that occurrence.

    One Location can have Many teams
    e.g. LA Rams, LA Dodgers, LA Lakers (NFL, MLB, NBA)
    or LA Lakers, LA Clippers (all NBA)

    One team can have played in many locations
    e.g. Boston Braves, Milwaukee Braves, Atlanta Braves (all MLB)

    One sport can have many teams
    e.g. Braves, Yankees, Dodgers (all MLB)

    One team (Name) can be in many sports
    e.g. New York Giants (MLB), New York Giants (NFL)

    One Sport can be in many locations
    e.g. NFL, NBA, MLB all have sports teams all over the place

    One Location can have many sports
    e.g. Atlanta Hawks (NBA), Atlanta Braves (MLB), Atlanta Falcons (NFL)

    Key:
    MLB = Major League Baseball
    NFL = National Football League (American Football)
    NBA = National Basketball Association

    Any help would be appreciated.
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32633

    #2
    Interesting question. Unfortunately minus any graphic of your current structure.

    As far as I can see you probably would need linking tables for all of those connections. That's three such tables to link :
    1. Teams to Locations.
    2. Teams to Sports.
    3. Locations to Sports.

    Each link works both ways of course so that saves another three ;-)

    Comment

    • cmo187265
      New Member
      • Aug 2018
      • 43

      #3
      I could not find how to attach an image until now. Thanks again for all your help!
      Attached Files

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32633

        #4
        That diagram shows the appropriate way as far as I can see :-)

        Comment

        • cmo187265
          New Member
          • Aug 2018
          • 43

          #5
          Thank you NeoPa. Also, thanks kindly for your support when I have asked questions in the past.

          My next Q for another thread may be how I can incorporate current franchises. For example many of these historic teams belong to one franchise history and I need to be able to search for both current franchise or specific historic teams.

          Thanks again!

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32633

            #6
            I'm always happy to help :-)

            I'll look out for your next question when you post it. Humorous titles are always good ;-)

            Comment

            Working...