阿摩線上測驗 登入

申論題資訊

試卷:108年 - 108 一般警察三等 資料庫應用#76993
科目:公職◆資料庫應用
年份:108年
排序:0

題組內容

二、假設現有如下會議室借用紀錄資訊的關連式資料庫,請使用 SQL 回答相 關的子問題。 Room(rID, type, capacity, manageDept) FKs: manageDept ref. Department(dID) Department(dID, name, managerID) FKs: managerID ref. Employee(eID) Employee(eID, name, deptID, expertise) FKs: deptID ref. Department(dID) UseRecord(roomID, employeeID, date, startHour, endHour, purpose) FKs: roomID ref. Room(rID), employeeID ref. Employee(eID) 其中 eID 是由西元年+3 位數的流水號所組成,如 2019001 表示 2019 年 第一位公司所聘用的員工。部門的主管,不一定是該部門的員工。所有 資料欄位不允許空白。

申論題內容

⑷請列出 2009 年到職且無擔任主管的員工,借用會議室的資料紀錄, 包括員工代號、姓名、會議室代號、類型、容量、借用日期、時間區 段及會議的目標。(5 分)