Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment is based on the following bank database. branch ( branch _ name, branch _ city, assets ) customer ( ID , customer _
This assignment is based on the following bank database.
branch branchname, branchcity, assets
customer ID customername, customerstreet, customercity
loan loannumber, branchname, amount
borrow ID loannumber
account accountnumber, branchname, balance
despitor ID accountnumber
Instructions
To complete this assignment, answer these questions:
points Consider the bank database. Give an expression in the relational algebra for each of the following queries:
Find the name of each branch located in "Chicago".
Find the ID of each borrower who has a loan in branch "Downtown".
points Consider the bank database. Assume that branch names and customer names uniquely identify branches and customers, but loans and accounts can be associated with more than one customer.
What are the appropriate primary keys for each relation?
Given your choice of primary keys, identify appropriate foreign keys for each relation if there is one In your answer, list which attribute is a foreign key referencing which relation.
points Consider the bank database. Give an expression in the relational algebra for each of the following queries:
Find each loan number with a loan amount greater than $
Find the ID of each depositor who has an account with a balance greater than $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started