wallaceoc80
Programmer
Can anybody help me with a small design problem that relates to a portion of a database I am designing?
Let me try and explain the situation as quickly as I can:
There can be many DEPARTMENTS (Dept Name and ID) which can have many USERS (User ID, Preferences, Group ID, AppGroup ID). A user can only be a memeber of 1 department.
A user can be a memeber of many GROUPS (Group ID and Name). A group can have many different users.
A user can also be a memeber of many APPGROUPS (AppGroupID, AppGroup Name, Application ID, User ID) and an AppGroup can have many users.
An AppGroup contains many APPLICATIONS (Application ID, App Name).
What is the best way to model this situation. The items I have written in upper case are the objects I currently have in my design. However, I feel there is a lot of duplication in this approach.
Any suggestions?
Regards,
Wallace
Let me try and explain the situation as quickly as I can:
There can be many DEPARTMENTS (Dept Name and ID) which can have many USERS (User ID, Preferences, Group ID, AppGroup ID). A user can only be a memeber of 1 department.
A user can be a memeber of many GROUPS (Group ID and Name). A group can have many different users.
A user can also be a memeber of many APPGROUPS (AppGroupID, AppGroup Name, Application ID, User ID) and an AppGroup can have many users.
An AppGroup contains many APPLICATIONS (Application ID, App Name).
What is the best way to model this situation. The items I have written in upper case are the objects I currently have in my design. However, I feel there is a lot of duplication in this approach.
Any suggestions?
Regards,
Wallace