1 / 10

Relational Model

n- ary Relationship. Relational Model. Create a relation R to represent the relationship Include the PK of the participating entities as FK in R. The combination of all FK form the PK of R. Add attributes that describes the relationship. StartD. EndD. SupNo. BizNo. contract.

nora
Download Presentation

Relational Model

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. n-ary Relationship Relational Model • Create a relation R to represent the relationship • Include the PK of the participating entities as FK in R. The combination of all FK form the PK of R. • Add attributes that describes the relationship StartD EndD SupNo BizNo contract BUSINESS SUPPLIER Lawyer LawNo BUSINESS(BizNo) LAWYER(LawNo) SUPPLIER(SupNo) contract(BizNo, SupNo, LawNo, StartDate, EndDate) Relational Model

  2. مثال 1 بنك (اسم البنك) فرع (رقم الفرع, اسم الفرع, المدينة, صندوق البريد, الرمز البريدي, اسم بنك) هاتف الفرع (رقم الفرع, رقم الهاتف ) حساب (رقم الحساب , رقم الفرع , نوع , رصيد, رقم السجل المدني ) عميل (رقم السجل المدني , الاسم, المدينة, صندوق البريد, الرمز البريدي) هاتفعميل (رقم السجل المدني , رقم الهاتف) مشترك (رقم الفرع , رقم السجل المدني )

  3. مثال 2 طالب (رقم الطالب , اسم الطالب) بحث (رقم البحث , اسم البحث, رقم الطالب) كتاب(اسم الكتاب , اسم المؤلف , تاريخ الاستعارة , تاريخ الارجاع ,..., رقم الطالب) نشاط (اسم النشاط , موعد , المكان ,...) اشتراك (رقم الطالب , اسم النشاط )

  4. مثال 2 رقم الطالب رقم البحث 1 سجل طالب بحث M 1 1 تاريخ استعارة تاريخ ارجاع يستعير يشترك اسم الكتاب M اسم النشاط كتاب M نشاط

  5. مثال 3 اسم المكتبة رقم السجل M 1 عضو لديها المكتبة 1 1 تاريخ استعارة تاريخ ارجاع لديها يستعير رقم الكتاب M اسم المؤلف M كتاب M مؤلف كتبه M

  6. مثال 3 المكتبة (اسم المكتبة, الموقع,... ) عضو (رقم السجل المدني , اسم العضو,.. اسم المكتبة ) كتاب (رقم الكتاب , اسم المكتبة, تاريخ استعارة , تاريخ ارجاع ,... رقم السجل المدني ) مؤلف (اسم المؤلف ,...) مشاركين (رقم الكتاب , اسم المؤلف ) هواتف (رقم الهاتف ,رقم السجل المدني )

More Related