TimBiesiek
Programmer
Hi All,
Am currently creating a new DB. At the mo there are about 27 odd tables, not including the archive tables, and log tables we plan to have, so it is quite a large DB.
I want to normalize the tables in this DB, but a workmate is saying we should have a certain field that relates to the owner of the data in every table, and sub table. I don't see this as neccessary, as this would de-normalize the tables, and the owner can be gained by going back through the table joins anyway.
E.g.
Companies Table - This shows info about the companies
Clients table - Clients are 'owned' by companies
Properties table - Properties are supplied by clients
Meters table - Meters belong to properties
Workmate thinks that the company ID should exist in the Clients table, Properties table and Meters table. However, the property the meter belongs to can be found, as can the client the property is supplied by, as can the company the client is 'owned' by...
Thoughts on this? Which would be the best way to go?
Am currently creating a new DB. At the mo there are about 27 odd tables, not including the archive tables, and log tables we plan to have, so it is quite a large DB.
I want to normalize the tables in this DB, but a workmate is saying we should have a certain field that relates to the owner of the data in every table, and sub table. I don't see this as neccessary, as this would de-normalize the tables, and the owner can be gained by going back through the table joins anyway.
E.g.
Companies Table - This shows info about the companies
Clients table - Clients are 'owned' by companies
Properties table - Properties are supplied by clients
Meters table - Meters belong to properties
Workmate thinks that the company ID should exist in the Clients table, Properties table and Meters table. However, the property the meter belongs to can be found, as can the client the property is supplied by, as can the company the client is 'owned' by...
Thoughts on this? Which would be the best way to go?