TAILIEUCHUNG - Lecture Database Systems - Lecture 29

After completing this chapter, students will be able to: Basic concepts, tree-structure diagrams, data-retrieval facility, update facility, virtual records, mapping of hierarchies to files, the IMS database system. | CSC271 Database Systems Lecture # 29 Summary: Previous Lecture The normalization process 1NF, 2NF, 3NF Inference rules for FDs BCNF Summary: Normalization First normal form (1NF) A relation in which the intersection of each row and column contains one and only one value Second normal form (2NF) A relation that is in 1NF and every non-PK attribute is fully functionally dependent on the primary key (CKs) Third normal form (3NF) A relation that is in 1NF and 2NF and in which no non-primary-key attribute is transitively dependent on the primary key (CKs) Boyce–Codd normal form (BCNF) A relation is in BCNF if and only if every determinant is a candidate key Example: Normalization Example: Normalization FDs Example: Normalization fd1 propertyNo, iDate → iTime, comments, staffNo, sName, carReg (Primary key) fd2 propertyNo→ pAddress (Partial dependency) fd3 staffNo→ sName (Transitive dependency) fd4 staffNo, iDate→ carReg fd5 carReg, iDate, iTime→ propertyNo, pAddress, comments, staffNo, sName (Candidate key) fd6 staffNo, iDate, iTime→ propertyNo, pAddress, comments (Candidate key) Example: Normalization INF to 2NF Property (propertyNo, pAddress) PropertyInspection (propertyNo, iDate, iTime, comments, staffNo, sName, carReg) Example: Normalization Property fd2 propertyNo → pAddress PropertyInspection fd1 propertyNo, iDate → iTime, comments, staffNo, sName, carReg fd3 staffNo → sName fd4 staffNo, iDate → carReg fd5′ carReg, iDate, iTime → propertyNo, comments, staffNo, sName fd6′ staffNo, iDate, iTime → propertyNo, comments Example: Normalization 2NF to 3NF Property (propertyNo, pAddress) Staff (staffNo, sName) PropertyInspect (propertyNo, iDate, iTime, comments, staffNo, carReg) Example: Normalization Property fd2 propertyNo → pAddress Staff fd3 staffNo → sName PropertyInspect fd1′ propertyNo, iDate → iTime, comments, staffNo, carReg fd4 staffNo, iDate → carReg fd5′ carReg, iDate, iTime → propertyNo, comments, staffNo fd6′ staffNo, iDate, iTime → propertyNo, comments .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.