The earlier definition of relations implies certain characteristic that makes a relation different from a file or a table.Some of these characters are :-Ordering of Tuples in a Relation: A relation is defined as a set of tuples. Mathematically, elements of a set have no order among them; hence tuples in a relation do not have any particular order. However in a file, records are graphically stored on disk so there always is an order among the records. This ordering indicates first, second, and last records in the file. Similarly, when we display a relation as a table, the rows are displayed in a certain order.Tuple ordering is no part of a relation definition, because a relation attempts to represent facts at a logical or abstract level. Many logical orders can be specified on a relation, for example, tuples in this STUDENT relation in Table 1.0 could be logically ordered by values of Name, SSN, Age, or some other attribute. The definition of a relation does not specify any order, there is no preference for one logical ordering over another.Ordering of values within a tuple, and an alternative definition of a relation: According to the preceding definition of a relation, an n-tuple is an ordered list of n values, so the ordering of values in a tuple and hence of attributes in a relation schema.An alternative definition of relation can be given, making the ordering of value in a tuple unnecessary. In this definition, a relation schema is a set of attributes and relation ( ) is a finite set of mappingswhere each tuple is a mapping from R to D, and D is the union of attribute domains; that is,In this definition, t(A1) must be in dom(A1) for for each mapping t in r. Each mapping is called a tuple.Values in the Tuples: Each value in a tuple is an atomic value; that is, it is not divisible into components within the framework of the basic relational model. Hence, composite and multi-valued attributes are not allowed. Much of the theory behind the relational model was developed with this assumption in mind, which is called the first normal form assumption. Multi-valued attributes must be represented by separate relations, and composite attributes are represented only by their simple component attributes. Recent research in the relational model attempt to remove these restrictions by using the concepts of no first normal form or nested relations.Interpretation of a Relation: The relation schema can be interpreted as a declaration or a type of assertion. For example, the schema of the STUDENT relation of Table 1.0 asserts that, in general, student entity has a Name, SSN, Home phone, Address, Office phone, Age, and GPA. Each tuple in the relation can then be interpreted as a fact or a particular instance of the assertion. For example, the first tuple in Table 1.0 asserts the fact that there is a STUDENT whose name is Olutunde Enoch, SSN is 305-61-2435, Age in 19 and so on.
ก่อนหน้านี้ที่นิยามของความสัมพันธ์ หมายถึง ลักษณะบางอย่างที่ทำให้ความสัมพันธ์ที่แตกต่างจากไฟล์หรือตาราง บางส่วนของตัวอักษรเหล่านี้คือ : - สั่งซื้อของทูเปิลในความสัมพันธ์ : ความสัมพันธ์ หมายถึง ชุดของทูเปิล . ทางคณิตศาสตร์ องค์ประกอบของชุดไม่มีคำสั่งของพวกเขา ดังนั้นที่มีในความสัมพันธ์ไม่มีส่วนใด อย่างไรก็ตามในแฟ้มบันทึกรูปภาพเก็บไว้ในดิสก์เพื่อเสมอเป็นคำสั่งระหว่างระเบียน การสั่งซื้อนี้บ่งชี้ว่า หนึ่ง สอง และระเบียนในแฟ้มล่าสุด และในทำนองเดียวกัน เมื่อเราแสดงความสัมพันธ์เป็นตารางแถวจะแสดงในลำดับหนึ่ง สั่ง tuple คือส่วนหนึ่งของความสัมพันธ์ความหมาย เพราะความสัมพันธ์ที่พยายามที่จะเป็นตัวแทนของข้อมูลในระดับตรรกะหรือนามธรรมคำสั่งตรรกะมากสามารถที่ระบุไว้ในความสัมพันธ์ ตัวอย่างเช่น ทูเปิลในนักเรียนสัมพันธ์ในตาราง 1.0 อาจจะสามารถสั่งด้วยค่าชื่อ , SSN , อายุ , หรืออื่น ๆบาง คุณลักษณะ นิยามของความสัมพันธ์ไม่ได้ระบุลำดับใด ๆไม่มีการตั้งค่าสำหรับหนึ่งตรรกะสั่งซื้อผ่านอีก สั่งซื้อของค่าภายใน tuple และทางเลือกคำนิยามของความสัมพันธ์ :ตามคำนิยามของความสัมพันธ์ข้างต้น เป็น n-tuple เป็นสั่งรายการของค่า ดังนั้นการสั่งซื้อค่าในแอตทริบิวต์ทูเปิลและดังนั้นในความสัมพันธ์ของ คํานิยามอื่นของความสัมพันธ์สามารถได้รับการสั่งซื้อของค่าใน tuple ที่ไม่จำเป็น ในคำนิยามนี้ความสัมพันธ์มาเป็นชุดของแอตทริบิวต์ และความสัมพันธ์ ( ) เป็นชุดจำกัดของ mappingswhere แต่ละ tuple คือการทำแผนที่จาก R ไป D และ D เป็นสหภาพของแอตทริบิวต์ของโดเมน ; นั่นคือ ในความหมายนี้ t ( A1 ) ต้องอยู่ในดอม ( A1 ) สำหรับแต่ละแผนที่ในแต่ละแผนที่ . เรียกว่า ทูเปิล ค่าในทูเปิล : แต่ละค่าใน tuple คือค่าอะตอม ; นั่นคือมันไม่ได้เป็นส่วนประกอบที่ลงตัว ภายในกรอบของความสัมพันธ์แบบพื้นฐาน ดังนั้น คอมโพสิตและหลายมูลค่า คุณสมบัติจะไม่อนุญาต นักทฤษฎีที่อยู่เบื้องหลังการพัฒนาแบบจำลองเชิงสัมพันธ์กับสมมติฐานนี้ในจิตใจ ซึ่งเรียกว่า สมมติฐานแรกแบบปกติ มีหลายมูลค่า คุณสมบัติต้องแสดงโดยแยกสัมพันธ์และคุณลักษณะคอมโพสิตแทนเท่านั้น โดยคุณลักษณะของชิ้นส่วนที่เรียบง่ายของพวกเขา . งานวิจัยล่าสุดในความพยายามที่จะลบข้อ จำกัด เหล่านี้แบบจำลองเชิงสัมพันธ์โดยใช้แนวคิดของแรกรูปแบบปกติหรือซ้อนกัน ความสัมพันธ์ การตีความของความสัมพันธ์ : ความสัมพันธ์ schema สามารถตีความเป็นประกาศหรือชนิดของการยืนยัน ตัวอย่างเช่น สคีมาของนักเรียนความสัมพันธ์ของตารางที่ 10 ยืนยันว่าโดยทั่วไปกิจการนักเรียนที่มีชื่อ , SSN , โทรศัพท์บ้าน , ที่อยู่ , โทรศัพท์สำนักงาน อายุ และ เกรดเฉลี่ยสะสม ในแต่ละทูเปิลในความสัมพันธ์สามารถตีความเป็นข้อเท็จจริงหรืออินสแตนซ์โดยเฉพาะของการยืนยัน ตัวอย่างเช่น ทูเปิล แรกของตารางการยืนยันข้อเท็จจริงว่า มีนักเรียนที่มีชื่อ olutunde Enoch , SSN เป็น 305-61-2435 อายุ 19 และ
การแปล กรุณารอสักครู่..
