Here is an ER diagram for a bank database, including the entities and relationships:
The main entities in this ER diagram are:
Customer: Stores information about the bank's customers, including their name, address, and contact information.
Account: Stores information about the various types of accounts the bank offers, including checking, savings, and money market accounts.
Loan: Stores information about the loans that the bank has granted, including the loan amount, interest rate, and payment schedule.
Deposit: Stores information about the various deposits that the bank has received, including CDs, savings deposits, and money market deposits.
Locker: Stores information about the lockers that the bank rents out to customers, including the locker number, location, and size.
The relationships between these entities are:
Customer-Account: Represents the fact that a customer can have multiple accounts.
Customer-Loan: Represents the fact that a customer can have multiple loans.
Customer-Deposit: Represents the fact that a customer can have multiple deposits.
Account-Loan: Represents the fact that an account can be used as collateral for a loan.
Account-Deposit: Represents the fact that an account can earn interest on a deposit.
Locker-Customer: Represents the fact that a customer can rent a locker.
Locker-Deposit: Represents the fact that a customer can store valuables in a locker.
Note that this is just one possible design for a bank database, and there may be variations depending on the specific requirements of the bank.