Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment is based on the following bank database. branch ( branch _ name, branch _ city, assets ) customer ( ID , customer _

This assignment is based on the following bank database.
branch (branch_name, branch_city, assets)
customer (ID, customer_name, customer_street, customer_city)
loan (loan_number, branch_name, amount)
borrow (ID, loan_number)
account (account_number, branch_name, balance)
despitor (ID, account_number)
Instructions
To complete this assignment, answer these questions:
(30 points) Consider the bank database. Give an expression in the relational algebra for each of the following queries:
Find the name of each branch located in "Chicago".
Find the ID of each borrower who has a loan in branch "Downtown".
(30 points) Consider the bank database. Assume that branch names and customer names uniquely identify branches and customers, but loans and accounts can be associated with more than one customer.
What are the appropriate primary keys for each relation?
Given your choice of primary keys, identify appropriate foreign keys for each relation (if there is one). In your answer, list which attribute is a foreign key referencing which relation.
(40 points) Consider the bank database. Give an expression in the relational algebra for each of the following queries:
Find each loan number with a loan amount greater than $10000.
Find the ID of each depositor who has an account with a balance greater than $6000.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions