MySQL Forums
Forum List  »  Newbie

Re: HELP! count*/group/ ecc....
Posted by: Claude Martin
Date: April 09, 2005 08:22AM

you should use three tables. one with the users (something like the one you have now) then one with all sports (including an ID for every sprot) and then a table that stores who likes what sport.


then you have something like this:

Users:
1. David
2. Michelle
3. Bob

Sports:
1. Tennis
2. Skateboarding
3. Hockey

User/Sprot:
1. 3. (David plays hockey)
1. 2. (David also likes skateboarding)
2. 1. (Michelle is a tennis player)

counting will be rather easy compared to your database.

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
April 09, 2005 05:18AM
Re: HELP! count*/group/ ecc....
April 09, 2005 08:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.