Thanks, John. That gives me a roadmap. I've never created a Union query but
there's no time like the present to try it. For future reference, I'm
wondering if you can suggest a better way to build a table (or tables) for
this sort of scenario? I'm not entirely sure I understand what you (and Duane
for that matter) mean by "normalization" in this context. Thanks again.
Whole books are written on this concept.
Lets take your current setup.
You should have a
table Employee with fields for Employeeid, FirstName, LastName, SSN, and
Title.
another
table DocumentationRequirements with fields EmployeeID, DocumentID,
DateDocumented (or just True/False)
and probably a third table with DocumentID, DocumentName
Then you would have
--one record for each employee
--one record for each type of document
--one record for each employee in combination for each document you have for
that employee
This is a bit more complex to set up, but it does make life a lot simpler
when you have to extract the data in various formats.
> Thanks, John. That gives me a roadmap. I've never created a Union query
> but
[quoted text clipped - 54 lines]
>> > the
>> > right direction I would be most appreciative.
spence - 08 Dec 2005 20:19 GMT
John,
Thanks so much. That makes perfect sense and saves me from having to read a
whole book. It's reflected in other design pieces of my db, but I'm still new
enough to this not to have the foresight in design to prevent myself from
making errors like this. I really appreciate you taking the time to educate
me.
> Whole books are written on this concept.
>
[quoted text clipped - 75 lines]
> >> > the
> >> > right direction I would be most appreciative.
spence - 08 Dec 2005 21:10 GMT
John,
Perhaps I spoke too soon. I have a complicating factor in this scenario
which is that I have four different employee types (DE, AG, IC, and GB), and
the documentation requirements for each type are different. There's
significant overlap in documentation requirements. For instance we want a
driver's license, s.s. card, W4, and I9 for all employee types, but for some
types we need copies of certifications specific to the employee type. The
employee type is recorded in a text field in tblEmployee.
Following your suggested redesign, it seems like I will need to create
separate DocumentationRequirement tables for each of the four employee types,
yes? I can't think of another way to define the differences in required
documentation for each type. If you have a better idea I'd love to hear it.
Thanks.
> Whole books are written on this concept.
>
[quoted text clipped - 75 lines]
> >> > the
> >> > right direction I would be most appreciative.