Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Consider the following database schema used to track student advising at Franklin University. The database has been in use for several years and contains thousands

Consider the following database schema used to track student advising at Franklin University. The database has been in use for several years and contains thousands of entries. Primary keys are underlined. Foreign keys are indicated.

Advisor (SSN, Name, Phone, Gender, Start_date)

Student (StudentID, Name, Phone, Address, Gender, DOB, AdvisorSSN)

FOREIGN KEY(AdvisorSSN)REFERENCES Advisor (SSN)

After discussing with the development teams, the following database refactoring has been approved: Change the primary key in the Advisor relation from SSN to a composite key: {Name, Phone}.

You are asked to implement the refactoring by using the appropriate refactoring pattern(s). Make the proper changes to related table(s) as well.

You need to:

  1. List every step in the order of application and describe the process of accomplishing the refactoring requests by including the following (for each used refactoring):
    1. nameof the refactoring pattern chosen
    2. motivation: why did you chose it for this refactoring
    3. schema update mechanics(if applicable): include the operations and SQL commands needed to achieve the desired objective
    4. data migration mechanics(if applicable): include the operations and SQL commands needed to achieve the desired objective
  2. Show the new database schema with new referential integrity constraints after the refactoring

If a trigger is needed, you can just describe its purpose and function in plain language. No need to implement it.

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

Advanced Accounting

Authors: Gail Fayerman

1st Canadian Edition

9781118774113, 1118774116, 111803791X, 978-1118037911

More Books

Students explore these related Databases questions