Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the correct order to CREATE the tables? Think about referential integrity. a . Owner, Pet Appointments, Treatment, Treatment _ Appt b . Pet,

What is the correct order to CREATE the tables? Think about referential integrity.
a. Owner, Pet Appointments, Treatment, Treatment_Appt
b. Pet, Treatment, Appointments, Owner, Ttreatment_appt
c. Treatment, Owner, Pet, Appointments, Treatment_appt
The Appointments table was not created with a primary key. What is the correct SQL to create a primary key for the table and which field should be the primary key?
a. ALTER TABLE Appointments
Add Primary Key (APPOINTMENT_ID));
b. CREATE PRIMARY KEY TABLE Appointments APPOINTMENT_DATE;
c. Modify Appointments
PRIMARY KEY PET_ID;
The OWNER_ID in the Pet table should be NOT NULL. What SQL corrects this?
a. CHANGE TABLE Pet
MODIFY OWNER_ID NOT NULL:
b. MODIFY TABLE Pet
ADD NOT NULL TO OWNER_ID;
c. ALTER TABLE Pet
MODIFY OWNER_ID INT NOT NULL;
All owners reside in Nevada. What SQL makes NV the default when a row is entered?
a. ALTER TABLE Owner
STATE =?'NV
b. ALTER TABLE Owner
MODIFY OWNER_STATE CHAR (2) DEFAULT 'NV';
c. ALTER TABLE Owner
OWNER_STATE ='NV';
0= Icon Key
image text in transcribed

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

More Books

Students also viewed these Databases questions