Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (40 points) The following database schema is part of a bank database Branch(bname, bcity, assets) Account(accountNo, bname, balance) Client(cID, cname, cstreet, c_city) Loan(loanNo, bname,

image text in transcribed

2. (40 points) The following database schema is part of a bank database Branch(bname, bcity, assets) Account(accountNo, bname, balance) Client(cID, cname, cstreet, c_city) Loan(loanNo, bname, amount) Borrower(cID, loanNo) Depositor(cID, accountNo) . Each bank branch is identified by the value of the attribute bname. The relation "Account" describes the account information each bank branch has. Each bank branch owns one or more accounts and an account number is unique across all bank branches . Each client is identified by the value of the attribute clD The relation "Loan" describes the loans approved by the branches. Each bank branch has one or more loans and a loan number is unique across all bank branches The relation "Borrower" describes the association between the clients and the loans they have. Each client can have one or more loans and each loan can belong to one or more clients The relation "Depositor, describes the association between the clients and the accounts they have. Each client can have one or more accounts and each account can belong to one or more clients. (a) Find the primary key and foreign key (if any) for each relation. (b) Pick one foreign key between two relations of your choice. Give one example of inserts and one example of deletes to these two relations, which can cause a violation of the referential integrity constraint

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

Step: 3

blur-text-image

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 Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

Students also viewed these Databases questions

Question

LO 5.5 List the factors that affect the consumer decision process.

Answered: 1 week ago

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago