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?

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 5HOA: Access path A database table is composed of records and fields hold data. Data is stored in records....
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning