Need xref Fix
I recently took over a db designed by another programmer. The DB is designed to track Teachers and their Classes. One Teacher to Many Classes.
Instead of having a field in the Class table for Teacher(id), the original designer added a third table to "cross-reference" this relationship (table is called "xrefTeacherClass")...so we have...
Table: Teacher
Id, Name, Address, School, etc.
Table: Class
Id, ClassName, ClassGrade, etc.
Table: xrefTeacherClass
Id, TeacherID, ClassID
I want to get rid of this "xref" table, so I have added a column to the Class table called "TeacherID", but I have no idea how to SQL the xref values over for all the teachers and classes...
???
-------------------------
Beware of programmers with screwdrivers...
__________________
-------------------------
Beware of programmers with screwdrivers...
|