A bank requires a database designed to keep track of its customers accounts. Each customer may have a number of accounts. Each of these accounts may be in the name of one or more customers. Each account is located in a particular branch of a bank. In addition, each customer may have zero or more loans with the bank. Each loan must be with one or more customers. Each loan is also located in a particular branch. The database must record the following information: The name of the bank, its address and its main telephone number The address and the sort code for each branch The name of each customer, the customers address and the customers telephone number For each bank account: the account number, its balance and the type of the account For each loan: the loan account number, the outstanding balance and the interest rate The database must also record the various relations between the different entities in the database   Draw an entity relationship diagram for the database. In your diagram, illustrate which are the key attributes, which relationships are optional and mandatory and the cardinality of the relationships                                                                Define a set of database tables that implement the entity-relationship diagram. Indicate which attributes will represent the primary key for each table, which attributes are foreign keys and which attributes cannot have a null value                                                                                                                            The referential integrity rules do not allow unmatched foreign key values. What would be the consequences of this rule for your database design?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

A bank requires a database designed to keep track of its customers accounts. Each customer may have a number of accounts. Each of these accounts may be in the name of one or more customers. Each account is located in a particular branch of a bank. In addition, each customer may have zero or more loans with the bank. Each loan must be with one or more customers. Each loan is also located in a particular branch. The database must record the following information:

The name of the bank, its address and its main telephone number

The address and the sort code for each branch

The name of each customer, the customers address and the customers telephone number

For each bank account: the account number, its balance and the type of the account

For each loan: the loan account number, the outstanding balance and the interest rate

The database must also record the various relations between the different entities in the database

 

Draw an entity relationship diagram for the database. In your diagram, illustrate which are the key attributes, which relationships are optional and mandatory and the cardinality of the relationships                                                             

 

Define a set of database tables that implement the entity-relationship diagram. Indicate which attributes will represent the primary key for each table, which attributes are foreign keys and which attributes cannot have a null value

                                                                                                                          

The referential integrity rules do not allow unmatched foreign key values. What would be the consequences of this rule for your database design?            

 

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education