題組內容
一、假設有一醫院資料庫有以下之關聯表(Relational table),分別代表醫生代號(Doctor#)、
病人代號(Patient#)、日期(Date)、診斷(Diagnosis)、治療代碼(Treat_code)
以及費用(Charge),其綱要(Schema)如下所示:
R (Doctor#, Patient#, Date, Diagnosis, Treat_code, Charge)
有底線之屬性(Attribute)為該表格之主鍵(Primary key),假設每個病人祇給一
位醫生診斷,每個治療代碼表示一個固定費用(不論病人)。