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 > Separate tables based on role

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-21-07, 19:59
MrBurns MrBurns is offline
Registered User
 
Join Date: Feb 2007
Posts: 3
Separate tables based on role

My system has multiple user types e.g. customers, administrators, service users. Customers and service users have similar attributes but administrative users have a variation.

My current design has the users with common attributes (customers + service users) in a users table with a role attribute to identify the user type and a separate table for administrator users.

I'm wondering, would it be better/cleaner to create a separate table for each user type and forget the role attribute..that way there won't be this business of some user types being in the user table and another separate table for admins even though symantically an admin is a user etc...

In summary: is it better to have a separate table for each user type? what are the pros and cons..

Thanks for any help!
Reply With Quote
  #2 (permalink)  
Old 02-21-07, 22:38
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
In my experience, it is better to have a single table of "Persons", and then a subtable listing their roles (allowing them to have multiple roles).
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
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