資料庫正規化 - 考試
By George
at 2016-11-04T21:58
at 2016-11-04T21:58
Table of Contents
做考古題遇到一題做出來與書本解答不一樣的題目
希望能幫我看看是否解答有錯,或我的作法有問題,謝謝
[題目]
員工任務關聯為(EID, EName, DID, JobID, JName, Title, Salary)
函數相依如下
EID -> {EName, DID, JobID}
JobID -> JName
{EID, Title} -> Salary
(一)員工任務的主鍵為何?
(二)請將員工任務分解成滿足3NF的關聯綱目
[我的解答]
(一)主鍵為{EID, Title}
(二)分解為
R1(EID, Title, Salary) {EID, Title}為主鍵
R2(JobID, JName) {JobID}為主鍵
R3(EID, EName, DID, JobID) {EID}為主鍵
[書本解答]
(一)主鍵為{EID, JobID}
(二)分解為
R1(EID, EName, DID) {EID}為主鍵
R2(JobID, JName) {JobID}為主鍵
R3(EID, Title) {EID}為主鍵
R4(Title Salary) {Title}為主鍵
--
希望能幫我看看是否解答有錯,或我的作法有問題,謝謝
[題目]
員工任務關聯為(EID, EName, DID, JobID, JName, Title, Salary)
函數相依如下
EID -> {EName, DID, JobID}
JobID -> JName
{EID, Title} -> Salary
(一)員工任務的主鍵為何?
(二)請將員工任務分解成滿足3NF的關聯綱目
[我的解答]
(一)主鍵為{EID, Title}
(二)分解為
R1(EID, Title, Salary) {EID, Title}為主鍵
R2(JobID, JName) {JobID}為主鍵
R3(EID, EName, DID, JobID) {EID}為主鍵
[書本解答]
(一)主鍵為{EID, JobID}
(二)分解為
R1(EID, EName, DID) {EID}為主鍵
R2(JobID, JName) {JobID}為主鍵
R3(EID, Title) {EID}為主鍵
R4(Title Salary) {Title}為主鍵
--
Tags:
考試
All Comments
By Kumar
at 2016-11-06T04:12
at 2016-11-06T04:12
By Iris
at 2016-11-07T11:20
at 2016-11-07T11:20
By Gary
at 2016-11-07T16:24
at 2016-11-07T16:24
By Elizabeth
at 2016-11-09T21:36
at 2016-11-09T21:36
Related Posts
會計學 資產價值減損 減損迴轉利益
By Brianna
at 2016-11-04T21:43
at 2016-11-04T21:43
降價售 沈浩生物 陳元國文 方智有機
By Noah
at 2016-11-04T21:15
at 2016-11-04T21:15
不當黨產委員會訴願管轄機關?
By Callum
at 2016-11-04T20:52
at 2016-11-04T20:52
司律用書
By Jessica
at 2016-11-04T18:53
at 2016-11-04T18:53
行銷學產品組合
By Connor
at 2016-11-04T18:52
at 2016-11-04T18:52