Consider the bank database schema shown below (see the textual description below). Assume that branch names uniquely identify branches. Also assume that loans and accounts can be associated with more than one customer. Format: tableName ( attributes ) Banking Database Schema: branch ( branch_name, branch_city, assets ) customer ( cust_ID, customer_name, customer_street, customer_city ) loan ( loan_number, branch_name, amount ) borrower ( cust_ID, loan_number ) account ( account_number, branch_name, balance ) depositor ( cust_ID, account_number ) a. What are the appropriate primary keys? Indicate the appropriate primary keys by copying-and-pasting the above schema and underlining the primary key attributes. b. Given your choice of primary keys, identify appropriate foreign keys (i.e. identify attributes in referencing and referenced relations). You can state the foreign key constraints in words. For example, “For loan relation: branch_name attribute referencing branch relation.” c. Construct a relational database schema diagram for the bank database given above. You must include a picture/illustration of your relational database schema diagram in your PDF submission

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question

) Consider the bank database schema shown below (see the textual description below).
Assume that branch names uniquely identify branches. Also assume that loans and
accounts can be associated with more than one customer.
Format:
tableName ( attributes )
Banking Database Schema:
branch ( branch_name, branch_city, assets )
customer ( cust_ID, customer_name, customer_street, customer_city )
loan ( loan_number, branch_name, amount )
borrower ( cust_ID, loan_number )
account ( account_number, branch_name, balance )
depositor ( cust_ID, account_number )
a. What are the appropriate primary keys? Indicate the appropriate primary keys by
copying-and-pasting the above schema and underlining the primary key attributes.
b. Given your choice of primary keys, identify appropriate foreign keys (i.e. identify
attributes in referencing and referenced relations). You can state the foreign key
constraints in words. For example, “For loan relation: branch_name attribute
referencing branch relation.”
c. Construct a relational database schema diagram for the bank database given
above. You must include a picture/illustration of your relational database schema
diagram in your PDF submission

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Dataset
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning