Professional Documents
Culture Documents
تعريفات Definitions:
Relation: A relation is a table with columns and rows.
العالقة :عالقة هي جدول مع األعمدة والصفوف.
Attribute: An attribute is a named column of a relation.
السمة :سمة هو عمود مسماة لعالقة.
Tuple: A tuple is a row of a relation.
الصفوف:هو صف من العالقة.
Degree: The degree of a relation is the number of attributes it
contains. The degree of a relation is a property of the intension
of the relation.
درجة العالقة هي. درجة العالقة هو عدد السمات التي يحتوي عليها:درجة
.ممتلكات لتكؤال العالقة
Relational Keys:
Relational keys are one or more attributes that uniquely
identifies each tuple in a relation.
مفاتيح العالقات العالئقية هي أو واحد أو سمات التي تحدد:مفاتيح العالمات العلمية
.فريد كل ما تواجه كل شيء
1. Superkey
An attribute, or set of attributes, that uniquely identifies a tuple
within a relation. A superkey may contain extraneous
attributes. For example, the combination of branchNO and
street is a superkey for the relation branch. If K is a superkey,
then so is any superset of K.
1-superkey
قد. تحدد بشكل فريد الصفوف ضمن العالقة، أو مجموعة من السمات، سمة
يعتبر الجمع بين، على سبيل المثال.يحتوي المفتاح الفائق على سمات غريبة
branchNO وstreet .مفتا ًحا رئيسيًا لفرع العالقة
إذا كان
فذلك يعني وجود أي مجموعة فرعية من، مفتا ًحا فائقًاK.
2. Candidate key
A superkey such that no proper subset is a superkey within the
key relation.
A candidate key, K, for a relation R has two properties:
• uniqueness – in each tuple of R, the values of K uniquely
identify that tuple;
• irreducibility – no proper subset of K has the uniqueness
property.
.2مفتاح المرشح
المفتاح الفائق بحيث ال يوجد مجموعة فرعية مناسبة هو المفتاح الفائق داخل العالقة
الرئيسية.
مفتاح الترشيح ( )،كي )،لعالقة (ار) له خاصتان:
• التفرد – في كل مجموعة من (ار) ( ،قيم) (كي) تحدد بشكل فريد تلك المجموعة ؛
• عدم قابلية االختزال – ال توجد مجموعة فرعية مناسبة من (كي) تحتوي على
خاصية فريدة.
3. Composite key
A key that consists of more than one attribute. The two
attributes (client number, property number) constitute a
candidate key (composite) for the viewing relation shown
مفتاح مركب
) رقم العقار، تشكل السمتان (رقم العميل.مفتاح يتكون من أكثر من سمة واحدة
مفتاح مرشح (مركب) لعالقة المشاهدة الموضحة