1 / 5

Relational Database Design

OWNER. 1. (1, N). own. N. (1, 1). incur. (1, 1). (0, N). MAINTENANCE. PROPERTY. 1. N. (0, N). 1. N. (0, N). for. rent. (1, 1). ACCOUNT. N. (1, 1). N. M. (1, N). pay. TENANT. (1, N). Relational Database Design. Relational Database Design.

winterb
Download Presentation

Relational Database Design

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. OWNER 1 (1, N) own N (1, 1) incur (1, 1) (0, N) MAINTENANCE PROPERTY 1 N (0, N) 1 N (0, N) for rent (1, 1) ACCOUNT N (1, 1) N M (1, N) pay TENANT (1, N) Relational Database Design Relational Database Design Perform the complete transformation steps for the E-R Model of the ‘Real Estate Agency’ described in Topic4. 1 Topic 5 : Relational Database Design

  2. The PROPERTY relation is modified: PROPERTY (Building#, Address, Value, Owner#) -- Relational Database Design Solution -- From Step1 OWNER ( Owner #, Owner Name, Owner Address) PROPERTY ( Building#, Address, Value) TENANT(Tenant#, Family Name, First Name, Contact Address, Phone#) MAINTENANCE (Maintenance#, Date, Type, Cost) ACCOUNT( Acct Receipt#, DateofPayment, TypeofAccount, AmountPaid) -- Step2:No weak entity -- Step3:no 1 To 1 relationship -- Step3 -- Step4:1 To N between OWNER and PROPERTY Topic 5 : Relational Database Design

  3. The MAINTENANCE relation is modified to: MAINTENANCE(Maintenance#, Date, Type, Cost, Building#) The ACCOUNT relation is modified to: ACCOUNT( Acct Receipt#, DateofPayment, TypeofAccount, AmountPaid,Tenant#) The ACCOUNT relation is modified to: ACCOUNT( Acct Receipt#, DateofPayment, TypeofAccount, AmountPaid,Tenant#, Building#) -- -- -- Relational Database Design Solution -- Step4:1 To N between PROPERTY and MAINTENANCE -- Step4:1 To N between TENANT and ACCOUNT -- Step4:1 To N between PROPERTY and ACCOUNT Topic 5 : Relational Database Design

  4. The RENT relation is created: RENT (Building#, Tenant#, LeasedPeriod, Bond) -- Relational Database Design Solution --Step5:M to N relationship between TENANT and PROPERTY -- Step6:no multivalued attribute. -- Step7:no ternary relatiosnhip - Topic 5 : Relational Database Design

  5. Relational Database Design Solution -- Finally, the end result of the transformation can be listed as follows. Step 1 OWNER ( Owner #, Owner Name, Owner Address) PROPERTY (Building#, Address, Value, Owner#) TENANT(Tenant#, Family Name, First Name, Contact Address, Phone#) MAINTENANCE(Maintenance#, Date, Type, Cost, Building#) ACCOUNT( Acct Receipt#, DateofPayment, TypeofAccount, AmountPaid, Tenant#, Building#) RENT(Building#, Tenant#, LeasedPeriod, Bond) Step 4 Step 1 Step 4 Step 4 Step 5 Topic 5 : Relational Database Design

More Related