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

  • Home
  • SEARCH
  • 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 5936525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:24:39+00:00 2026-05-22T15:24:39+00:00

I am trying to design a simple SQLite database to bill players on a

  • 0

I am trying to design a simple SQLite database to bill players on a server. The server is paid for on a monthly basis at a cost of $10 (but this might change).
I would like to have the following tables (or something better):

Months:
-id (int primary key)
-ref (text) something like "JAN11 just for readability"
-cost (real) something like 10 or 9.5 the monthly cost of the server

Players:
-id (int primary key)
-name (text)

The cost should be divided among the players who logged on at the end of the month (ie. 5 people log in in January they get the $10 split among them).

In short:
I don’t know how to store whether or not the players logged in during the month so as to divide the cost among them.

  • 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-05-22T15:24:40+00:00Added an answer on May 22, 2026 at 3:24 pm

    Another good table to have would be Logins, e.g.:

    Logins:
        id int,
        player_id int,
        month_id int
    

    That way you could just check if a player logged in, or even also check how many times they logged in (assuming you wanted to track that).

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

Sidebar

Related Questions

I've been trying to design a database schema for a side project but I
I'm trying to design a database for a sports meeting. I think I've got
I'm trying to design a simple game ---Pong, Arkanoid--- using strictly Proper OO, whatever
I am trying to design some simple GUIs with Glade to use with Ruby.
I'm trying to design a simple Cocoa application and I would like to have
I have a simple question. I am trying to design a simple Android app,
I'm trying to design a pretty simple app and am getting myself a bit
I am trying to design a couple of simple widgets in order to get
I'm trying to design some tables to store some data, which has to be
I'm trying to design an application based on the OpenSocial API , and I'm

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.