Map this BANK ER diagram into relational database tables. Specify all tables, attributes, primary keys and foreign keys.
Map this BANK ER diagram into relational database tables. Specify all tables, attributes, primary keys and foreign keys.
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
Related questions
Question
Show steps clearly
![### Mapping the BANK ER Diagram into Relational Database Tables
**BANK_ENTITY_RELATIONSHIP_DIAGRAM**
**1. BANK**
- **Attributes**: Code (Primary Key), Name, Addr
- **Description**: Represents the bank entity with its unique identification code, name, and address.
**2. BRANCHES**
- **Attributes**: Code (Foreign Key from BANK), Branch_no (Primary Key), Addr
- **Description**: Denotes the branches of the bank, each with a unique branch number and an address linked to a bank code.
**3. ACCOUNT**
- **Attributes**: Acct_no (Primary Key), Balance, Type, Branch_no (Foreign Key from BRANCHES)
- **Description**: Represents bank accounts with a unique account number, balance, type of account, and is linked to a specific branch.
**4. LOAN**
- **Attributes**: Loan_no (Primary Key), Amount, Type, Branch_no (Foreign Key from BRANCHES)
- **Description**: Represents loans issued by the bank, each with a unique loan number, amount, and type. Loans are linked to a specific branch.
**5. CUSTOMER**
- **Attributes**: Ssn (Primary Key), Name, Phone, Addr
- **Description**: Represents customers of the bank with their unique social security number, their name, phone number, and address.
**6. A_C (Account-Customer Relationship)**
- **Attributes**: Acct_no (Foreign Key from ACCOUNT), Ssn (Foreign Key from CUSTOMER)
- **Description**: Indicates the many-to-many relationship between accounts and customers, meaning one customer can have multiple accounts and one account can be owned by multiple customers.
**7. L_C (Loan-Customer Relationship)**
- **Attributes**: Loan_no (Foreign Key from LOAN), Ssn (Foreign Key from CUSTOMER)
- **Description**: Specifies the many-to-many relationship between loans and customers, indicating that one customer can have multiple loans and a single loan can have multiple customers.
#### Entity-Relationship Diagram Description:
- The ER diagram captures different entities such as BANK, BRANCHES, ACCOUNT, LOAN, and CUSTOMER along with their attributes.
- It indicates how entities are connected through relationships such as BRANCHES (1:N) BANK_BRANCH, ACCTS (1:N) ACCOUNT, LOANS (1:N) LOAN, and their respective foreign key links.
- Many](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3a42516a-8f34-4de7-bf07-1e56b71c1c35%2Fa5d3d4bd-e2a5-45d1-8ffc-2546a52afd1d%2F7vy1cl_processed.png&w=3840&q=75)
Transcribed Image Text:### Mapping the BANK ER Diagram into Relational Database Tables
**BANK_ENTITY_RELATIONSHIP_DIAGRAM**
**1. BANK**
- **Attributes**: Code (Primary Key), Name, Addr
- **Description**: Represents the bank entity with its unique identification code, name, and address.
**2. BRANCHES**
- **Attributes**: Code (Foreign Key from BANK), Branch_no (Primary Key), Addr
- **Description**: Denotes the branches of the bank, each with a unique branch number and an address linked to a bank code.
**3. ACCOUNT**
- **Attributes**: Acct_no (Primary Key), Balance, Type, Branch_no (Foreign Key from BRANCHES)
- **Description**: Represents bank accounts with a unique account number, balance, type of account, and is linked to a specific branch.
**4. LOAN**
- **Attributes**: Loan_no (Primary Key), Amount, Type, Branch_no (Foreign Key from BRANCHES)
- **Description**: Represents loans issued by the bank, each with a unique loan number, amount, and type. Loans are linked to a specific branch.
**5. CUSTOMER**
- **Attributes**: Ssn (Primary Key), Name, Phone, Addr
- **Description**: Represents customers of the bank with their unique social security number, their name, phone number, and address.
**6. A_C (Account-Customer Relationship)**
- **Attributes**: Acct_no (Foreign Key from ACCOUNT), Ssn (Foreign Key from CUSTOMER)
- **Description**: Indicates the many-to-many relationship between accounts and customers, meaning one customer can have multiple accounts and one account can be owned by multiple customers.
**7. L_C (Loan-Customer Relationship)**
- **Attributes**: Loan_no (Foreign Key from LOAN), Ssn (Foreign Key from CUSTOMER)
- **Description**: Specifies the many-to-many relationship between loans and customers, indicating that one customer can have multiple loans and a single loan can have multiple customers.
#### Entity-Relationship Diagram Description:
- The ER diagram captures different entities such as BANK, BRANCHES, ACCOUNT, LOAN, and CUSTOMER along with their attributes.
- It indicates how entities are connected through relationships such as BRANCHES (1:N) BANK_BRANCH, ACCTS (1:N) ACCOUNT, LOANS (1:N) LOAN, and their respective foreign key links.
- Many
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education