Tutorial 5 CS 340

6 Slides1.62 MB

Tutorial 5 CS 340

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.

Answer:

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 parttime. 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.

Answer:

Back to top button