CS1103/Labs/Lab6/3.sql

11 lines
224 B
MySQL
Raw Normal View History

2022-10-07 00:48:09 -03:00
CREATE TABLE Enrollments
(
studentID INT,
courseID INT,
letterGrade CHAR(2),
PRIMARY KEY(studentID, courseID),
FOREIGN KEY(studentID)
REFERENCES Students(studentID)
ON DELETE NO ACTION
ON UPDATE CASCADE
);