Presentation is loading. Please wait.

Presentation is loading. Please wait.

Relational Algebra HW2 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.

Similar presentations


Presentation on theme: "Relational Algebra HW2 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups."— Presentation transcript:

1 Relational Algebra HW2 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.

2 Banking Example (primary keys are not indicated) 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)

3 Relational Algebra HW 2 Using the Banking relations on the previous slide, develop relational algebra expressions to answer the following queries: 1. Find the names of all customers who have a loan at the Perryridge branch. 2. Find the names of all customers who have a loan at the Perryridge branch but do not have an account at any branch of the bank. 3. Find the name of all customers who have a loan at the bank and the loan amount. 4. Find all customers who have an account from at least the ‘Downtown’ and the ‘Uptown’ branches. 5. Find all customers who have an account at all branches located in Brooklyn city.


Download ppt "Relational Algebra HW2 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups."

Similar presentations


Ads by Google