shown in Figure 13.3. The StaffBranch relation is an alternative format of the Staff and
Branch relations. The relations have the form:
Staff (staffNo, sName, position, salary, branchNo)
Branch (branchNo, bAddress)
StaffBranch (staffNo, sName, position, salary, branchNo, bAddress)
Note that the primary key for each relation is underlined.
In the StaffBranch relation there is redundant data; the details of a branch are repeated for
every member of staff located at that branch. In contrast, the branch details appear only
once for each branch in the Branch relation, and only the branch number (branchNo) is
repeated in the Staff relation to represent where each member of staff is located. Relations
that have redundant data may have problems called update anomalies, which are
classified as insertion, deletion, or modification anomalies.
แสดงในรูปที่ 13.3 . การ staffbranch ความสัมพันธ์เป็นทางเลือกรูปแบบของพนักงานและ
ประชาสัมพันธ์ สาขา ความสัมพันธ์มีรูปแบบ :
( staffno sname พนักงาน , ตำแหน่ง , เงินเดือน , branchno สาขา ( branchno )
,
baddress ) staffbranch ( staffno sname , ตำแหน่ง , เงินเดือน , branchno baddress
, ) หมายเหตุ คีย์หลักของแต่ละความสัมพันธ์ที่ขีดเส้นใต้ไว้ .
ใน staffbranch ความสัมพันธ์มีข้อมูลซ้ำซ้อน ;รายละเอียดของสาขาที่ซ้ำสำหรับทุกสมาชิกของเจ้าหน้าที่
ตั้งอยู่ที่สาขานั้นได้ ในทางตรงกันข้าม , สาขารายละเอียดปรากฏเพียงครั้งเดียวสำหรับแต่ละสาขา
ในสาขาประชาสัมพันธ์ และสาขาจำนวน ( branchno )
ซ้ำในพนักงานสัมพันธ์ เป็นตัวแทนที่แต่ละสมาชิกของเจ้าหน้าที่อยู่ ความสัมพันธ์
ที่มีข้อมูลมากเกินไปอาจมีปัญหาที่เรียกว่าการปรับปรุงความผิดปกติซึ่ง
แบ่งเป็น แทรก ลบ หรือแก้ไขความผิดปกติ .
การแปล กรุณารอสักครู่..
