Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Need help designing my database
Old 04-18-2005, 11:50 PM Need help designing my database
Novice Talker

Posts: 10
Trades: 0
I'm doing a draft with my friends... There's going to be a pool of players to choose from. I'm breaking the players down into 2 tables, pitchers and fielders.



This is a picture of the excel sheet that i have the players in. But, because some pitchers have more pitches than others, there are empty slots. I heard this is bad database design, but i don't know another way to do it.

*note: i haven't added an ID column to the database yet, i'll also need a teamID column, so the players that have been drafted will not show up.
jdubwelch is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-19-2005, 10:59 PM
Novice Talker

Posts: 10
Trades: 0
You might want to create separate tables for every redundant fields, Then link the tables with primary key foreign key relationships.
To help you out, try drawing an ERD diagram first before creating the table.

Example:
1. Players (Player_ID[PK], FirstName, LastName, POS_ID[FK], THR_DI[FK])
2. POS (POS_ID[PK], POS)
3. THR (THR_ID[PK], THR)
3. Stats (Stats_ID[PK], Player_ID[FK], 1P, 1PR, 2P, 2PR, 3P, 3PR, 4P, 4PR, 5P, 5PR)

This example might not be the best, cause I don't have the whole dataset for your database, but i hope you get the idea.
__________________
Warm Regards,
WebGuy
ANTARAMEDIA | explore the possibilities

Please login or register to view this content. Registration is FREE
antaramedia0com is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help designing my database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24755 seconds with 12 queries