SQL: Junction table
CREATE TABLE StudentClassroom
(
StudentID int NOT NULL,
ClassroomID int NOT NULL,
CONSTRAINT PK_StudentClassroom PRIMARY KEY
(
StudentID,
ClassroomID
),
FOREIGN KEY (StudentID) REFERENCES Students (StudentID),
FOREIGN KEY (ClassroomID) REFERENCES Classrooms (ClassroomID)
)