Download presentation
Presentation is loading. Please wait.
Published byEric Payne Modified over 9 years ago
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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.