1 / 6

Tutorial 5

Tutorial 5. CS 340. Ex: 4.17.

lucien
Download Presentation

Tutorial 5

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. Tutorial 5 CS 340

  2. Ex: 4.17 • Consider the BANK ER schema of Figure 3.21, and suppose that it is necessary to keep track of different types of ACCOUNTS (SAVINGS_ACCTS, CHECKING_ACCTS, ...) and LOANS (CAR_LOANS, HOME_LOANS, ...). Suppose that it is also desirable to keep track of each account's TRANSACTIONs (deposits, withdrawals, checks, ...) and each loan's PAYMENTs; both of these include the amount, date, time, ... . Modify the BANK schema, using ER and EER concepts of specialization and generalization. State any assumptions you make about the additional requirements.

  3. Answer:

  4. Exercise: • Draw an E-R (Entity-Relationship) diagram for the following problem statement. • The HappyGarden bookstore has several branches located in different places. Each branch is managed by a branch manager. Other staffs such as secretary and sales personnel are directly under the supervision of the branch manager. Every staff is allocated to only one branch. The staffs of the HappyGarden bookstore can be divided into two main types, full-time and part-time. The full-time staffs are paid by monthly salary, whereby the part-timers are paid buy hour rate. The particulars of staffs include staff name, staff number, gender, date-of-birth, address and telephone number.

  5. Answer:

More Related