I have two tables as defined below:
Course(Worker_id, Course_id)
Primary key is (Worker_id, Course_id)
Prerequisite(Course_id, Prerequisite_id)
Primary key is (Course_id, Prerequisite_id)
I would like to be able to find all circular prerequisites. For example, if CourseA was a prerequisite for CourseB and CourseB was a prerequisite for CourseA (simplified example). My result should be the name of the courses that have unsatisfiable prerequisites, in this case both CourseA and CourseB.