Jump to content

Recommended Posts

I would like to create a MySQL db to track the number of miles I ride on my bike per month for myself as well as my friends. My thoughts are a simple form with a few fields that get filled in. I have created very simple MySQL db's before but nothing where you have repetitive entries from the same users (hope that makes sense).    What is the best way to go about this? One table per rider or would I just use a field to distinguish which rider I am looking at when I want to display information?

I would use 2 tables, and then use join statements to connect the 2.

 

table 1

 

ID

Rider

 

table 2

 

ID

Miles

Rider_id

 

Something along those lines is what I would do. if that is all you want to save.  then you use sql SUM to count at the end of the month.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.