題組內容

二、假設現有如下推拿就醫資訊的關連式資料庫,請使用 SQL 回答相關的子問題。 
 Naprapathist(nID, name, speciality) 
 Patient(pID, name, gender, birthday)
 MedicalItem(mID, subject, description, charge) 
 MedicalRecord(mID, nID, pID, dateTime, extraCharge, totalCharge) 
 FKs: mID ref. MedicalItem(mID), nID ref. Naprapathist(nID), pID ref. Patient(pID) 
 其中 nID, mID, pID 是由 1000 開始每次增加 1 的自動編號整數,所有資料欄位不允空 
 白,totalCharge 是由 MedicalRecord 的 charge 跟 extraCharge 加總而來。

⑴定義資料表 MedicalRecord(定義中應適當表示 primary and foreign key)(10 分)

詳解 (共 4 筆)

111年警特高普中鋼調查皆上榜
111年警特高普中鋼調查皆上榜
詳解 #5357452
2022/02/25
create table Medical...
(共 478 字,隱藏中)
前往觀看
只回答難題(除非別人回答太爛)
只回答難題(除非別人回答太爛)
詳解 #6221587
2024/10/03


(共 1 字,隱藏中)
前往觀看
109高普考資訊處理雙榜
109高普考資訊處理雙榜
詳解 #3239950
2019/03/11
CREATE TABLE Medical...
(共 323 字,隱藏中)
前往觀看
Lu_yee
Lu_yee
詳解 #4307106
2020/10/09
 CREATE TABLE Medic...
(共 321 字,隱藏中)
前往觀看