S
sklett
I'm redesigning my application to use ADO.net and this is also resulting in
a schema redesign - FUN!
I have a fairly newbie design question;
I have a table called Tbl_ProductInfo and it has fields like this:
ProductTypeID
ProductSN
DateManufactured
I have another table called Tbl_ProductTestResults and it has fields like
this:
TestResultID
ProductSN
DateTested
I would like to determine if a given ProductSN has been tested. There are
two ways I can think to do this;
1) Get the count of records from Tbl_ProductTestResult that have a matching
serial number
2) Add a field to Tbl_ProductInfo - 'HasBeenTested'
This is a simple example for illustration purposes. Option #2 appeals to me
because I don't need to touch any additional tables to get my answer. in my
real application I have several more circumstances like the above where I
could either store data in a central table or determine the same data by
evaluating different tables.
Hope that makes sense.
Thanks for reading,
Steve
a schema redesign - FUN!
I have a fairly newbie design question;
I have a table called Tbl_ProductInfo and it has fields like this:
ProductTypeID
ProductSN
DateManufactured
I have another table called Tbl_ProductTestResults and it has fields like
this:
TestResultID
ProductSN
DateTested
I would like to determine if a given ProductSN has been tested. There are
two ways I can think to do this;
1) Get the count of records from Tbl_ProductTestResult that have a matching
serial number
2) Add a field to Tbl_ProductInfo - 'HasBeenTested'
This is a simple example for illustration purposes. Option #2 appeals to me
because I don't need to touch any additional tables to get my answer. in my
real application I have several more circumstances like the above where I
could either store data in a central table or determine the same data by
evaluating different tables.
Hope that makes sense.
Thanks for reading,
Steve