TAILIEUCHUNG - Introduction to Database Systems- P9

Tham khảo tài liệu 'introduction to database systems- p9', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 374 PartlH I Database Design Matters are even worse for update operations. For example consider the following two updates 1. Create a new shipment for supplier S6 part P5 quantity 500. 2. Create a new shipment for supplier S2 part P5 quantity 500. With our usual shipments relvar SP there is no qualitative difference between these two updates both involve the insertion of a single tuple into the relvar. With relvar SPQ by contrast the two updates differ in kind significantly not to mention the fact that again they are both much more complicated than their SP counterpart sW 1. INSERT SPQ RELATION TUPLE SI SI 36 PQ RELATION TUPLE PI PI P5 QTY QTY 500 2. UPDATE SPQ WHERE St SI S2 INSERT PQ RELATION TUPLE PI Pt P5 QTY QTY 500 Relvars at least base relvars without relation-valued attributes are thus usually to be preferred because the fact that they have a simpler logical structure leads to corresponding simplifications in the operations we need to perform on them. Please understand however that this position should be seen as a guideline only not as an inviolable law. In practice there might well be cases where a relation-valued attribute does make sense even for a base relvar. For example Fig. shows part of a possible value for RVK RVNAME S SP MARRIAGE MARRIAGE MARRIAGE CK ATTRNAME SI ATTRNAME SI PI ATTRNAME HUSBAND DATE ATTRNAME DATE WIFE ATTRNAME WIFE HUSBAND Please purchase PD pffl ergTSn wwwfv te5lYia ove this watermark. It -d 1 Chapter 12 Further Normalization I INF 2NF 3NF BCNF 375 g a catalog reivar RVK that lists the relvars in the database and their candidate keys. Sf Attribute CK in that reivar is relation-valued. It is also a component of the sole candidate . key for RVK A Tutorial D definition for RVK might thus look something like this VAR RVK BASE RELATION . RVNAME NAME CK RELATION ATTRNAME NAME KEY RVNAME CK il Note Exercise at the end of the chapter asks you to consider what is involved in r eliminating relation-valued attributes if as is .

TỪ KHÓA LIÊN QUAN
Đã 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.