Computing.Net > Forums > Database > very simple SQL design question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

very simple SQL design question

Reply to Message Icon

Name: DataFlood
Date: May 1, 2008 at 21:02:20 Pacific
OS: vista
CPU/Ram: 4gb
Product: HP Pavilion
Comment:

Hi all,
i am desiging a database for a team
what i need from this data base keep record of all players, information about every player height , weight , age .. etc
and i need information on every game he played
and how many 2pts. how many 3pts. how many rebounds.. etc a player made.
can anybody help me in the design.
and tell me how many tables i should have, or send me a sketch diagram of the tables.
thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: Jennifer SUMN
Date: May 2, 2008 at 12:08:39 Pacific
Reply:

Sounds like a homework assignment.

Life's more painless for the brainless.


0

Response Number 2
Name: boaster
Date: May 2, 2008 at 14:33:46 Pacific
Reply:

I would do it as three tables:

TABLE 1 (PLAYER):

P_ID: A unique ID for the player
P_LASTNAME: Last name
P_FIRSTNAME: First name
P_HEIGHT: Height (in inches or metric, you can convert if you want to display feet)
P_WEIGHT: Weight
P_BIRTHDAY: Player's birthday, then calculate the age. That way the age displayed updates automatically.
etc.

TABLE_2: (GAME)
G_ID: ID of the game
G_DATE: Date game was played
G_TEAM: Name of opposing team
etc.

TABLE 3: (PLAYERS and GAMES)
P_ID: ID of the player
G_ID: ID of the game they played in
C_REBOUNDS: Rebounds
C_2PTS: 2 point shots
etc.


0

Response Number 3
Name: qualsoft
Date: December 11, 2008 at 23:25:53 Pacific
Reply:

I would go for 3 tables.

Regards,
qualsoft


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: very simple SQL design question

Beginner SQL Student, Question www.computing.net/answers/dbase/beginner-sql-student-question/271.html

Dis/Enabling via Checkbox status www.computing.net/answers/dbase/disenabling-via-checkbox-status/424.html

Merging DB's in Access www.computing.net/answers/dbase/merging-dbs-in-access/34.html