Quote:
|
Originally Posted by Fulham
Will this type of design where primary keys consist of multiple ID fields from other tables bad from a performance standpoint?
|
no
what matters more is whether the design is good from a logical standpoint
Quote:
|
Originally Posted by Fulham
In the standalone student scenario the student table entry would have NULLS in the ComapnyID, LocationID and TeacherID.
|
no portion of a PK may be NULL
the FKs may be NULL, but you need to fix your PKs first
consider your idea here --
Student Table
--------------------
PK CompanyID
FK LocationID
FK TeacherID
this is no good because it says that each student is identified by the company ID, which immediately limits you to one student per company