D
Devin
Hello.
I'm setting up a small database
of user account and some other information pertaining to them (less
than 30). Its probably insiginificant how I set this up for the most
part but I would like to follow best practices as a matter of
experience.
I have a table of users. Fname, Lname, email_address. The problem is
that its possible that a user might have more than one email address.
So I can put them in one field and use a split function when I
actually call that data, which seems a lot like cheating. Or I can
make another table. If I make another table I'm not sure what fields
it should have. The only way I can think to uniquely identify each
record would be a composite key, but I understand that isn't really
proper unless both parts of the key are from existing keys. (In this
case I'd be using the userID and an auto-number)
Suggestions?
Sorry if this isn't appropriate for this group, I couldn't find
anything more specific to just "database help".
Thanks!
I'm setting up a small database
of user account and some other information pertaining to them (less
than 30). Its probably insiginificant how I set this up for the most
part but I would like to follow best practices as a matter of
experience.
I have a table of users. Fname, Lname, email_address. The problem is
that its possible that a user might have more than one email address.
So I can put them in one field and use a split function when I
actually call that data, which seems a lot like cheating. Or I can
make another table. If I make another table I'm not sure what fields
it should have. The only way I can think to uniquely identify each
record would be a composite key, but I understand that isn't really
proper unless both parts of the key are from existing keys. (In this
case I'd be using the userID and an auto-number)
Suggestions?
Sorry if this isn't appropriate for this group, I couldn't find
anything more specific to just "database help".
Thanks!