I have a table that stores employee training for aircraft mechanics. tblTraining has the following fields: TrainingID, EmployeeID, TrainingTitle, TrainingType, FleetType, Date.
The value for FleetType can be 727, 747, 757, or 767.
The value for TrainingType can be ENG, AVI, FAM, CAT, or ETOPS.
I need to determine which employees are qualified on which fleet types using the following criteria...
To be qualified on 747 Employee must have completed ENG, AVI, and FAM.
To be qualified on 727 or 757, Employee must have completed ENG, AVI, FAM, and CAT where the Date for the CAT Training is > the last day of the month a year ago.
To be qualified on 767, Employee must have ENG, AVI, FAM, CAT, and ETOPS where the Dates for the CAT Training and the ETOPS training are both > the last day of the month a year ago.
I'm going insane trying to figure out how to query for qualified employees??
Any help would be greatly appreciated!!
Thank you,
Mike
The value for FleetType can be 727, 747, 757, or 767.
The value for TrainingType can be ENG, AVI, FAM, CAT, or ETOPS.
I need to determine which employees are qualified on which fleet types using the following criteria...
To be qualified on 747 Employee must have completed ENG, AVI, and FAM.
To be qualified on 727 or 757, Employee must have completed ENG, AVI, FAM, and CAT where the Date for the CAT Training is > the last day of the month a year ago.
To be qualified on 767, Employee must have ENG, AVI, FAM, CAT, and ETOPS where the Dates for the CAT Training and the ETOPS training are both > the last day of the month a year ago.
I'm going insane trying to figure out how to query for qualified employees??
Any help would be greatly appreciated!!
Thank you,
Mike