Database
Database
Copilot
Certainly! Let’s address each question related to designing an information system for a bank:
The provided image appears to be an Entity-Relationship (ER) diagram for a bank information
system. ER diagrams visually represent the structure of a database by illustrating entities, their
attributes, and the relationships between them.
Here are the components depicted in the diagram:
Entities:
Account: Represents bank accounts held by customers.
Branch: Represents bank branches.
Customer: Represents individual bank customers.
Loan: Represents loans provided by the bank.
Attributes:
Each entity has specific attributes associated with it. For example:
Account: Attributes include A/C_no, Balance, and Assets.
Customer: Attributes include c_name (customer name) and c_street (customer
address).
Loan: Attributes include l_id (loan ID) and amt (loan amount).
Relationships:
The diagram shows relationships between entities:
Branch has a one-to-many relationship with Account (one branch can have
multiple accounts).
Customer has a one-to-many relationship with Account (one customer can have
multiple accounts).
Customer has a one-to-many relationship with Loan (one customer can have
multiple loans).
To create the equivalent relational model, we’ll map the entities and their relationships to tables in a
relational database:
Account:
Table name: Account
Attributes: A/C_no, Balance, Assets, Branch_name
Branch:
Table name: Branch
Attributes: Branch_name, Branch_city, Assets
Customer:
Table name: Customer
Attributes: c_name, c_street
Loan:
Table name: Loan
Attributes: l_id, amt
Relationships:
Create foreign keys in the tables to represent the relationships (e.g., Branch_name in
Account refers to Branch_name in Branch).
3. Using appropriate software, create a database entitled “BANK” with three accounts, each having
borrowed 150,000 FCFA at your customer service. Name the database “HNDSEW2022” and place it
in a folder named “HND2023.” Write a query to select all customers.
Remember that this is a simplified explanation, and in a real-world scenario, additional considerations (such as
security, scalability, and performance) would be essential for designing a robust bank information system.