Ok this is going to be very hard to explain without the database. What I want to do is see which employees do not meet the required training classes and list the employee name along with the class(es) they have not completed. For some reason this is driving me crazy. I can not write the right SQL to do this I have four tables.
Table1 is empEmployee with attributes of:EmpID_num, EmpLName, EmpFName, Position_Num(which is the job position in the company ex. 1 could stand for MIS) Ttable is just the employee information
Table2 is tblTrainingCompleted with the attributes of Training_Num (just an autonumber), EmpID_Num (which Employee took the class), Course_Num (Which course was taken), Date. This table keeps track of what class a certain employee took on a certain date
Table3 is tblAvailClasses with the attributes of Course_Num, and Description (Just a descrition of what the course number is) This table is like a catalog of all classes availiable.
Table 4 is tblPosition with the attributes of: Postion_Num (this is the postion they hold is the company just like in the tbleEmployee), Position_Title ( just a description of the Position), then Training_Needed1, Training_Needed2, Training _Needed3 , Training_Needed4 (Which are the appropriate classes that they must be trained in this would be the course_num. This table is just a catalog of all the poitions in the company and the Training needed in that position. For ex. Position_num could be 1 with Title being MIS then classes need could be class 1, 5, and 7
Table1 is empEmployee with attributes of:EmpID_num, EmpLName, EmpFName, Position_Num(which is the job position in the company ex. 1 could stand for MIS) Ttable is just the employee information
Table2 is tblTrainingCompleted with the attributes of Training_Num (just an autonumber), EmpID_Num (which Employee took the class), Course_Num (Which course was taken), Date. This table keeps track of what class a certain employee took on a certain date
Table3 is tblAvailClasses with the attributes of Course_Num, and Description (Just a descrition of what the course number is) This table is like a catalog of all classes availiable.
Table 4 is tblPosition with the attributes of: Postion_Num (this is the postion they hold is the company just like in the tbleEmployee), Position_Title ( just a description of the Position), then Training_Needed1, Training_Needed2, Training _Needed3 , Training_Needed4 (Which are the appropriate classes that they must be trained in this would be the course_num. This table is just a catalog of all the poitions in the company and the Training needed in that position. For ex. Position_num could be 1 with Title being MIS then classes need could be class 1, 5, and 7