Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a primary key constraint on the owner column in the owners table and make the owner_name column the primary key. This must be done

  1. Create a primary key constraint on the owner column  in the owners table and make the owner_name column the primary key. This must be done before a foreign key constraint can be created on the dogs table.
  2. Create a foreign key constraint on the dogs table. The dogs table will reference the owners table through the owner_name column (a foreign key/exported key for the owner_name column in the dogs table.) 
  3. Test your foreign key constraint by adding a row to the owners table and then add a row to the dogs table with the same owner_name value. 


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

Accounting Information Systems

Authors: George H. Bodnar, William S. Hopwood

11th Edition

0132871939, 978-0132871938

More Books

Students also viewed these Databases questions