GoodLife22
Registered User.
- Local time
- Today, 12:43
- Joined
- Mar 4, 2010
- Messages
- 86
Please see my sample DB, sometimes my verbiage is off and a sample may help. My DB has 2 sample tables. I want to know why one way is better than the other.
I am specifically dealing with the way I link the company name to the employee.
Sample 1 – Is a direct drop down from one table to the other.
Sample 2 – Is a link to the ID of the company via the combo drop down. So technically it is only showing the company, but storing the ID.
In all of the samples I find online Microsoft seems to go with the second sample style. So my question is this:
From a design element why is the second option so much better than the first?
I know the second option is better when a record such as company name changes you would not have a ton of orphan records tied to a company that no longer exists in tbl_COMPANY, but it also makes queries harder to write. See query sample1 and query sample2. So why is the second option the way to go?
Thanks.
I am specifically dealing with the way I link the company name to the employee.
Sample 1 – Is a direct drop down from one table to the other.
Sample 2 – Is a link to the ID of the company via the combo drop down. So technically it is only showing the company, but storing the ID.
In all of the samples I find online Microsoft seems to go with the second sample style. So my question is this:
From a design element why is the second option so much better than the first?
I know the second option is better when a record such as company name changes you would not have a ton of orphan records tied to a company that no longer exists in tbl_COMPANY, but it also makes queries harder to write. See query sample1 and query sample2. So why is the second option the way to go?
Thanks.