Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Insert the following data into your database separating it appropriately into the make and model tables and setting the make_id foreign key to link each

Insert the following data into your database separating it appropriately into the make and model tables and setting the make_id foreign key to link each model to its corresponding make.

makemodel
MercuryMilan AWD FFV
MercuryMilan FFV
MercuryMilan FWD
VolkswagenJetta III
VolkswagenJetta III GLX


Here is the structure of the tables you will need for this assignment:

CREATE TABLE make (    id SERIAL,    name VARCHAR(128) UNIQUE,    PRIMARY KEY(id) ); CREATE TABLE model (  id SERIAL,  name VARCHAR(128),  make_id INTEGER REFERENCES make(id) ON DELETE CASCADE,  PRIMARY KEY(id) );

Step by Step Solution

3.36 Rating (159 Votes )

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Computer Engineering questions

Question

What do you see as your biggest strength/weakness?

Answered: 1 week ago

Question

Lemma prob 5 : ~partial _ function le .

Answered: 1 week ago

Question

How do you save the results of an SQL query as a table?

Answered: 1 week ago

Question

Describe the purpose of the product process in relational algebra.

Answered: 1 week ago