Bluehost.com Web Hosting $6.95

Need help in creating database for a golf league

This is a discussion on Need help in creating database for a golf league within the MySQL Database forums, part of the Database Forums category; I am going to attempt to build a web site / database for the golf league that I am in. It ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-27-2007
L C
 
Posts: n/a
Default Need help in creating database for a golf league

I am going to attempt to build a web site / database for the golf league
that I am in. It will be a good learning exercise and it should be fun as
well. I am not sure how to set up my tables in MYSQL. I now enough about
databases that if I do this part incorrectly that I may make my life much
more difficult.

I am going to use MySQL as my database ( I have no MYSQL experience but some
MSSQL and Access), and I will connect to it using PHP ( I have used it in
the past)
My provider offers both options for free.

Database for a golf league web site

Each player will have the following data initially loaded

First name

Last name

Email address

Phone number

Work number

Starting Handicap for the year


The following data will be loaded each week for approximately 14 weeks


The golf scores by hole for each person


For example after Larry completes 9 holes the data to be entered would be

Hole# 1 2 3 4 5 6 7 8 9
Score 4 3 4 4 5 4 4 3 4

Out of this data the code I create will calculate the following:

The players handicap based on the score(s) of the preceding weeks

Standings based on scores

Most birdies

Most Pars

Here is my question:


When I set up my database do I have my "weekly scores" in a different table
then my "golfer data"? Or would I have each "week" a separate table then
the golfer data?

Thanks for any help

Larry C


Reply With Quote
  #2 (permalink)  
Old 03-28-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Need help in creating database for a golf league

L C wrote:
> I am going to attempt to build a web site / database for the golf league
> that I am in. It will be a good learning exercise and it should be fun as
> well. I am not sure how to set up my tables in MYSQL. I now enough about
> databases that if I do this part incorrectly that I may make my life much
> more difficult.
>
> I am going to use MySQL as my database ( I have no MYSQL experience but some
> MSSQL and Access), and I will connect to it using PHP ( I have used it in
> the past)
> My provider offers both options for free.
>
> Database for a golf league web site
>
> Each player will have the following data initially loaded
>
> First name
>
> Last name
>
> Email address
>
> Phone number
>
> Work number
>
> Starting Handicap for the year
>
>
> The following data will be loaded each week for approximately 14 weeks
>
>
> The golf scores by hole for each person
>
>
> For example after Larry completes 9 holes the data to be entered would be
>
> Hole# 1 2 3 4 5 6 7 8 9
> Score 4 3 4 4 5 4 4 3 4
>
> Out of this data the code I create will calculate the following:
>
> The players handicap based on the score(s) of the preceding weeks
>
> Standings based on scores
>
> Most birdies
>
> Most Pars
>
> Here is my question:
>
>
> When I set up my database do I have my "weekly scores" in a different table
> then my "golfer data"? Or would I have each "week" a separate table then
> the golfer data?
>
> Thanks for any help
>
> Larry C
>
>


Larry,

I would suggest you start by searching on "database normalization" and
understand how normalizing works. Most databases are around 3rd normal
form (3NF).

Then take a cut at designing it, and come back here with your try.
You'll learn a lot more by figuring it out this way, and we can help you
make it more efficient.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0