I'm looking for the best way to store this information. Not every course has an expiry date.
The easiest way I've found so far is:
tblEmployee
-----------
ID (pk)
Expiry1
Expiry2
tblCourseCatalog
----------------
CourseID(pk)
Name
For every course in tblCourseCatalog
, a new Expiry
is created in tblEmployee
to match tblCourseCatalog.CourseID
.
I tried to have:
tblCourseExpiryDates
--------------------
EmployeeID (pk) 1:1 with tblEmployee.ID
FirstAid
UnderWaterBasketWeaving
Anytime a new course was added to tblCourseCatalog
, a new column was added to tblCourseExpiryDates
to match. This became tricky when trying to query some info. Does my current way (Expiry
in tblEmployee
) change things much from having tblCourseExpiryDates
? to me, having a Expiry2 column is a waste if tblCourseCatalog.CourseID=2
(UnderWaterBasketWeaving
) does not expire.