Re: [Q] Database design

2005-04-02 Thread Eric Gorr
It took me awhile to understand this, but it does appear to be the correct solution in my case. Thank you. Bartis, Robert M (Bob) wrote: Sounds like you need a 1:N relationship table to hold userInfo separate from either the user or group table. Adding a infoIdentifier would allow the number of r

RE: [Q] Database design

2005-04-02 Thread Bartis, Robert M (Bob)
mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 2:59 PM To: Tom Crimmins Cc: mysql@lists.mysql.com Subject: Re: [Q] Database design Tom Crimmins wrote: > user table: > id (pk) > name > any other user info only dependant on the user > > group table: > id (pk) > nam

Re: [Q] Database design

2005-04-02 Thread Eric Gorr
Tom Crimmins wrote: user table: id (pk) name any other user info only dependant on the user group table: id (pk) name any other group info only dependant on the group usergroup table: user_id (pk) group_id (pk) any info specific to individual user/group combo Yes, if I understand what you are sayin

Re: [Q] Database design

2005-04-02 Thread Tom Crimmins
On Saturday, April 02, 2005 12:48, Eric Gorr wrote: > Peter Brawley wrote: >> Eric, >> >> If I understand you correctly, you propose to encode user and group >> info as table names. That's a mistake. To use an RDBMS like MySQL >> effectively, you want to encode your information as rows of data i

Re: [Q] Database design

2005-04-02 Thread Peter Brawley
Eric, You do not want to encode data in table names. Mainly you want to create the least redundant set representation of your data, realise that representation as fixed related tables, then use SQL to fill & query those tables. Do a little reading and play with a few toy designs before you sta

Re: [Q] Database design

2005-04-02 Thread Eric Gorr
Peter Brawley wrote: Eric, If I understand you correctly, you propose to encode user and group info as table names. That's a mistake. To use an RDBMS like MySQL effectively, you want to encode your information as rows of data in tables whose names and structures do not vary. Thank you for your c

Re: [Q] Database design

2005-04-02 Thread Peter Brawley
Eric, If I understand you correctly, you propose to encode user and group info as table names. That's a mistake. To use an RDBMS like MySQL effectively, you want to encode your information as rows of data in tables whose names and structures do not vary. May I suggest you read some of the tutor

[Q] Database design

2005-04-02 Thread Eric Gorr
Not having done much database design in the past, I have what should be a fairly simple design question. I usage of mySQL will revolve around a common group + user system. There can be multiple groups and each group will contain some subset of users. Each group will have a custom set of data whos