Relational Algebra HW2 - PowerPoint PPT Presentation

About This Presentation
Title:

Relational Algebra HW2

Description:

Find the names of all customers who have a loan at the Perryridge branch. ... Find all customers who have an account at all branches located in Brooklyn city. ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 4
Provided by: scie189
Learn more at: https://www.cs.unca.edu
Category:

less

Transcript and Presenter's Notes

Title: Relational Algebra HW2


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
  • Find the names of all customers who have a loan
    at the Perryridge branch.
  • 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.
  • Find the name of all customers who have a loan at
    the bank and the loan amount.
  • Find all customers who have an account from at
    least the Downtown and the Uptown branches.
  • Find all customers who have an account at all
    branches located in Brooklyn city.
Write a Comment
User Comments (0)
About PowerShow.com