table structure question

From: Date: Mon, 29 Dec 2003 21:31:10 +0000
Subject: table structure question
Groups: php.db 
Request: Send a blank email to php-db+get-32210@lists.php.net to get a copy of this message
Hi everyone, I would like to set up the following two tables inside a db for a soccer league, but wanted to run their structure by you guys first. Here it is: dbname: soccer_stats tables: teams, players teams ------ name | captain | division | paid | pmnt_notes | win | loss | tie | goals_for | goals_against players ------ lname | fname | team_name | dob | address | telephone | email | sex | yellow | red | disc_notes | goals_scored | own goals I've never split the info over multiple tables, but this way made sense to me for some reason. I've been thinking, and if, for example, I want to (using mysql) pull the captain of a specific player, how would I do that? Is this a good table design in the first place? Comments and criticisms are welcome! Thanks - Kirk

« previous php.db (#32210) next »