Question

In: Computer Science

home / study / engineering / computer science / computer science questions and answers / 2....

home / study / engineering / computer science / computer science questions and answers / 2. design an er-diagram for a bank that implements the following requirements. the database ...

Question: 2. Design an ER-diagram for a bank that implements the following requirements. The database you d...

2. Design an ER-diagram for a bank that implements the following requirements. The database you design should store information about customers, accounts, branches and employees

• Customer: Customers are identified by their SSN. For each customer we store a name, multiple phone numbers (one or more), and an occupation.

• Account: Accounts are identified by an account number and the branch they belong to. For each account we store a balance and the type of account (e.g., savings).

– An account belongs to one or more customers. A customer can have any number of accounts.

– An account belongs to exactly one branch. Obviously, branches can have multiple accounts (branches are not required to have accounts).

• Branch: A branch is identified by a unique branch code. For each branch we want to store a location and number of employees.

• Employee: Employees are identified by their SSN. For each employee we store a name and salary.

– An employee works for exactly one branch. Branches have one or more employees.

– An employee is the contact for zero or more customers. Every customer has at most one employee as a contact.                                                    [20 marks]

Solutions

Expert Solution


Description

As per given requirements following steps needs to be taken

Customer: Customers are identified by their SSN. For each customer we store a name, multiple phone numbers (one or more), and an occupation.

Make an entity set (rectanle) named Employee with attributes CSSN , NAME, PHONE and OCCUPATION shown in elipses and underline CSSN to show it as primary key and attribute phone number in double ellipse to show it is multivalued attribute

Account: Accounts are identified by an account number and the branch they belong to. For each account we store a balance and the type of account (e.g., savings).

Here the account is identified by Account Number and branch_code together this means account number is not unique and hence Account table will be weak entity set shown by double rectangle and acct_no. will be underlined by dashed line to show that its is dicreminator. hence account will have total participation in relation acct_branch

An account belongs to one or more customers. A customer can have any number of accounts.

Depositor relatioin will be many to many relation

An account belongs to exactly one branch. Obviously, branches can have multiple accounts (branches are not required to have accounts).

Relation acct_branch will be one to may relation between branch and account

Branch: A branch is identified by a unique branch code. For each branch we want to store a location and number of employees.

Br_Code will be primary key

Employee: Employees are identified by their SSN. For each employee we store a name and salary.

ESSN will be primary key of Employee table and other attributes will be as listed

– An employee works for exactly one branch. Branches have one or more employees.

Branch to employee relation will be one to many relation

– An employee is the contact for zero or more customers. Every customer has at most one employee as a contact.                  

Relation between employee and customer is shown as CONTACT


Related Solutions

home / study / engineering / computer science / computer science questions and answers / create...
home / study / engineering / computer science / computer science questions and answers / create a new java file, containing this code public class datastatsuser { public static void ... Your question has been answered Let us know if you got a helpful answer. Rate this answer Question: Create a new Java file, containing this code public class DataStatsUser { public static void... Create a new Java file, containing this code public class DataStatsUser { public static void main...
home / study / engineering / computer science / computer science questions and answers / Modify...
home / study / engineering / computer science / computer science questions and answers / Modify StudentLinkedList Class By Adding The Following Methods:  PrintStudentList: Print ... Your question has expired and been refunded. We were unable to find a Chegg Expert to answer your question. Question: Modify StudentLinkedList class by adding the following methods:  printStudentList: print by call... Modify StudentLinkedList class by adding the following methods:  printStudentList: print by calling and printing “toString” of every object in...
The questions read as follows: home / study / engineering / computer science / computer science...
The questions read as follows: home / study / engineering / computer science / computer science questions and answers / Course Grades Java Class In A Course, A Teacher Gives The Following Tests And Assignments: ... Question: Course grades java class In a course, a teacher gives the following tests and assignments: A lab ... course grades java class In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and...
home / study / science / nursing / nursing questions and answers / This Is A...
home / study / science / nursing / nursing questions and answers / This Is A Theoretical Case Taken From VHA Intensive Ethics Advisory Committee Training, 1998, ... Your question has been posted. We'll notify you when a Chegg Expert has answered. Post another question. Next time just snap a photo of your problem. No typing, no scanning, no explanation required. Get Chegg Study App Question: This is a theoretical case taken from VHA Intensive Ethics Advisory Committee Training, 1998,...
home / study / science / nursing / nursing questions and answers / you are a...
home / study / science / nursing / nursing questions and answers / you are a public health researcher. you have been asked to identify a vaccine-preventable disease. ... Question: You are a public health researcher. You have been asked to identify a vaccine-preventable disease... You are a public health researcher. You have been asked to identify a vaccine-preventable disease. Your research design should focus on determining why health care workers are not receiving the vaccination for your selected vaccine-preventable...
home / study / science / biology / questions and answers / which of the following...
home / study / science / biology / questions and answers / which of the following best explains why atp is ... Question: Which of the following BEST explains why ATP is a ... Save Which of the following BEST explains why ATP is a positive regulator of aspartate transcarbamoylase (ATCase)? A. Aspartate is only available when ATP levels are high. B. ATP levels correspond to CTP levels, thus when both ATP and CTP are high, ATCase is active. C....
home / study / science / physics / physics questions and answers / this is my...
home / study / science / physics / physics questions and answers / this is my second time posting this: question: i have been working on this and i have done ... Question: This is my second time posting this:   Question: I have been working on this and I have... This is my second time posting this:   Question: I have been working on this and I have done it. But I am not sure what velocity versus time plot,... I...
home / study / science / nursing / nursing questions and answers / case study joshua...
home / study / science / nursing / nursing questions and answers / case study joshua thomson is an active 13-year-old who was riding his bike with friends when ... Question: Case Study Joshua Thomson is an active 13-year-old who was riding his bike with friends when he f... Case Study Joshua Thomson is an active 13-year-old who was riding his bike with friends when he fell while attempting to jump over a ditch. His friends helped him home, and...
home / study / science / nursing / nursing questions and answers / case study: gall...
home / study / science / nursing / nursing questions and answers / case study: gall bladder john smith is a 65-year-old retiree who is admitted to your unit from ... Question: Case Study: Gall bladder John Smith is a 65-year-old retiree who is admit... Case Study: Gall bladder John Smith is a 65-year-old retiree who is admitted to your unit from the emergency department (Ed). On arrival, you note that he is trembling and nearly doubled over with severe...
home / study / science / chemistry / questions and answers / 1. calculate the amount...
home / study / science / chemistry / questions and answers / 1. calculate the amount of na2hpo4�7h2o (in grams) ... Question 1. Calculate the amount of Na2HPO4 x 7H2O (in grams) needed to make 50 mL of a 0.40 M solution. 2. Calculate the amounts of Na2HPO2 and NaH2PO4 (in grams) needed to prepare 200 mL of a buffer with pH = 8.25 so that the sum of concentrations of (HPO4)2- and (H2PO4)- ions is 0.5 M. pKa1=2.12, pKa2=7.21,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT