Question
Write both relational algebra expression for each of the following queries. Branch(branch_name, branch_city, assets) Customer(customer_name, customer_street, customer_city) Loan(loan_number, branch_name, amount) Borrower(customer_name, loan_number) Account(account_number, branch_name, balance)
Write both relational algebra expression for each of the following queries.
Branch(branch_name, branch_city, assets)
Customer(customer_name, customer_street, customer_city)
Loan(loan_number, branch_name, amount)
Borrower(customer_name, loan_number)
Account(account_number, branch_name, balance)
Depositor(customer_name, account_number)
1. Find the names of branches with customers who have an account in the bank and who lives in "Harrison".
2. List all branches whose average account balances are more than $10,000.
3. Find all the customers of the bank who have an account but not a loan.
4. Find out the total sum of all loan amounts in the bank.
5. List the names of all branches that have assets greater than those of at least one branch located in "Brooklyn".
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