If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Storing users with additional attributes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-10, 14:18
mynameishenning mynameishenning is offline
Registered User
 
Join Date: Feb 2010
Posts: 6
Storing users with additional attributes

Hey all!

My database contains a table named "users" that stores a user id along with all sorts of information about the user. A second table defines to which user groups the user belongs.

Now I have a user group for which I want to store additional information (to be specific - the database should store referees who have attributes like their fee, academic department etc.)

My question is if it is a good practice to introduce a new table with one column for user ids so that I have a reference to my "users" table and be able to store all additional information for that user class in this table?

Thank you for any help!!
Best
Henning
Reply With Quote
  #2 (permalink)  
Old 02-20-10, 22:06
MarkATrombley MarkATrombley is offline
Registered User
 
Join Date: Jul 2009
Location: Michigan
Posts: 125
You would want to create a new table called something like Referee which contains the user ID (as a foreign key back to the user table) and any attributes that are specific to referees.
Reply With Quote
  #3 (permalink)  
Old 02-26-10, 16:48
mynameishenning mynameishenning is offline
Registered User
 
Join Date: Feb 2010
Posts: 6
That's the way I did it now - thanks!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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