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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:17:00+00:00 2026-06-08T11:17:00+00:00

I want to model, analyze and create a database consisting of information from a

  • 0

I want to model, analyze and create a database consisting of information from a card game. Each round of the game would have an ID, time stamp, and 4 or more players (usually 4). I have defined my player table with its set of attributes. However since each round has 4 players, how do I efficiently implement the relationship between the round and the players?

Essentially each round has 4 distinct players, with the same attributes (with different values). It would seem odd to have one attribute(column) for each player since I would like to have some kind of link to a player table to keep my ‘objects’ independent and encapsulated. Is this a one to many relationship between the round and the 4 players?

When I draw my model on paper it seems to be more like a hierarchy. For example, I have a Round that has 4 Players and each Player has a Hand of cards. Is this is a relational model, hierarchial model, object model, or something else?

Also, can this be done in SQL? If not what should I use?
Any help/suggestions are much appreciated since all my experience is with relational databases in SQL.

Thanks!

  • 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-08T11:17:03+00:00Added an answer on June 8, 2026 at 11:17 am

    Basically

       Round                                       Player
    ------------                              -----------------
    
    round_id player_id others_attri       player_id info_attributes
    

    Then, for each round, you need storage 4 rows in Round, with the same id and each player id, example, Round with id 1 where players 1,2,3,4 are in.

       Round               Player
    -----------          -----------
    1  1  date                1
    1  2  date                2
    1  3  date                3
    1  4  date                4
    

    player_id is a foraign key to player_id.

    Or if you dont want storage date many times, do that:

    Round                      player_play                      Player
    ---------                   ------------                -----------------
    
    round_id info_attributes  round_id player_id        player_id info_attributes
    
    
    
    Round           player_play              Player
    -------         -----------          -----------
    1 date           1  1                  1
                     1  2                  2
                     1  3                  3
                     1  4                  4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to model the following scenario in the database: I have a Package,
I want to use model-based clustering to classify 1,225 time series (24 periods each).
I have several resources which I want to model with RDF, each of them
I have a QTableView which displays data from a QSqlTableModel. I want my model
I want a Django model to have a date field in which the year,
I want to turn Model.attribute into Attribute.models. e.g. I currently have Model.first.attribute => string
I want to have a model with calculated fields that I can apply sorting
I want to create a model named Model. I'm pretty sure this isn't allowed,
I want to model a kind of FSM(Finite State Machine). I have a sequence
Say I want to model a system where a piece of data can have

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.