Question: Consider a banking database with the following relation schemas: branch (branch_name, branch_city, assets) customer (customer_name, customer_street, customer_city) account (account_number, branch_name, balance) loan (loan_number, branch_name, amount)
Consider a banking database with the following relation schemas:
branch (branch_name, branch_city, assets)
customer (customer_name, customer_street, customer_city)
account (account_number, branch_name, balance)
loan (loan_number, branch_name, amount)
depositor (customer_name, account_number)
borrower (customer_name, loan_number)
Use relation algebra and SQL to write the following queries:
i. Find all loans of over $1200 at the Perryridge branch.
ii. Find the names of all customers who meet the following criteria:
A. They are both a borrower and depositor.
B. Both their loan and balance are over $1200
I need this within 20min. Urgent
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
