題組內容

二、考慮關聯式資料庫的三個 table:學生(Student)、課程(Course)和修課紀錄(Taken)。 它們的結構(schema)定義如下:Student(sName, sID)、Course(cName, cID, credit)、 Taken(sID, cID, grade)。(每小題 20 分,共 40 分)

⑴以 E-R diagram 畫出三個 table 的關係,並標註 table 中的 primary key 和 foreign key。