Any help or ideas would be appreciated.
Thanks,Hi,
There are a number of solutions to this problem, one would be to create a Groups table, a Users table and a UsersPerGroups table.
Users
UserID | UserName
--------
1 | echo88
2 | taylorza
3 | tmorton
Groups
GroupID | GroupName
--------
1 | Admin
2 | Power User
3 | User
Putting users in groups is as easy as populating the UsersPerGroups table, in this case
echo88 belongs to the Admin and Power User groups
taylorza belongs to the User group
tmorton belongs to no groups
UsersPerGroup
UserID | GroupID
-------
1 | 1
1 | 2
2 | 3
Hope this helps
No comments:
Post a Comment