Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Doubts in how to organize user information

Author  Topic 

cesark
Posting Yak Master

215 Posts

Posted - 2008-09-09 : 11:32:29
Hello,

I was thinking to have a main Users table with a few common data such as ‘StartDate’,
‘KindOfService’, ‘DelegationsServiceIncluded’, and ‘CurrentState’. And all the other user information in separate spread tables linked to main Users table, tables such as ‘UsersCompanyName’, ‘UsersSocialSecurityNum’, ‘UsersActivity’, ‘UsersAddresses’, ‘UsersTelFax’, ‘UsersEmail’, ‘UsersWebAddr’, ‘UsersContactName’, ‘UsersContactHours’, ‘UsersJobPosition’, and so on.

On the other hand, create a Users Data Access table linked to main Users table through UserNumber field. That table would contain User Name, Password, Current State, and Access Category field (which determine the account access hierarchy: Administrator, Supervisor, or Technical).
User information tables mentioned firstly, will contain a Foreing Key of this table (‘UsersDataAccess’) so that all users accounts have its contact information and the rest of the data of its Company.

But the ‘problem’ will be when an additional user account is added from the same Company, then I will have to ‘refill’ fields of users information tables with possibly the same content of other users accounts of the same Company (like Company Name, Social Security Number, Activity, Address,..). How can I avoid this? Or this repeated information doesn’ t matter..

Note: Not in all cases this ‘problem’ will happen, because a user which is a Company can own other Companies, so, can have other user accounts in our website app with different Company Name, Social Security Number, Activity, Address,.. Regardless of those users belong to the same Company.

Thank you

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-26 : 04:12:36
See http://www.datamodel.org/NormalizationRules.html



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -