Results 1 to 3 of 3
  1. #1
    JoshEngleman is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    2

    MMA Database Design Hiccup

    Hi Everyone,



    I've been looking to build my own personal database of MMA results for quite some time and finally decided to pull the trigger. I've never really done any database work before, so it is all pretty new to me. I have 95% of the design mapped out but I'm really struggling with one part and I hope that someone here can help me.

    As of right now, I have 5 tables. They are: fighters, fights, company, card and method. They are broken down as follows:

    fighters: fighterID (autonumber), first name, last name, nickname, date of birth

    company: companyID (autonumber), company name

    card: cardID (autonumber), card name, companyID

    method (ie, KO, Submission, Decision): methodID (autonumber), method

    My issue is with the fights table. I'm sure there is a really easy answer to this, but it has been driving me crazy. I know that the primary key is supposed to be a unique value. How can I have each fight have a unique fightID if I need to two people to be represented in that fight?

    I need to show that Jim won, Pete lost, along with links to the cardID and methodID. Am I making any sense?

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    You will need to have another table that lists each fight and you will need to create a junction table as it has a many to many relationship.

    See here

    http://www.youtube.com/watch?v=7XstSSyG8fw

  3. #3
    JoshEngleman is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    2
    Awesome, thanks. That makes a lot of sense. Now I just need to try and figure out how to enter this data efficiently.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need help on database design
    By joe1987 in forum Database Design
    Replies: 1
    Last Post: 04-09-2012, 04:30 PM
  2. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  3. Database Design
    By shutout14cf in forum Database Design
    Replies: 10
    Last Post: 12-20-2010, 11:04 AM
  4. hiccup in my query
    By immaxx in forum Queries
    Replies: 0
    Last Post: 08-27-2009, 11:04 AM
  5. Database Design
    By mzrihe1x in forum Database Design
    Replies: 1
    Last Post: 06-17-2009, 09:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums