Answered step by step
Verified Expert Solution
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, TreatmentAppt
b Pet, Treatment, Appointments, Owner, Ttreatmentappt
c Treatment, Owner, Pet, Appointments, Treatmentappt
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 APPOINTMENTID;
b CREATE PRIMARY KEY TABLE Appointments APPOINTMENTDATE;
c Modify Appointments
PRIMARY KEY PETID;
The OWNERID in the Pet table should be NOT NULL. What SQL corrects this?
a CHANGE TABLE Pet
MODIFY OWNERID NOT NULL:
b MODIFY TABLE Pet
ADD NOT NULL TO OWNERID;
c ALTER TABLE Pet
MODIFY OWNERID INT NOT NULL;
All owners reside in Nevada. What SQL makes NV the default when a row is entered?
a ALTER TABLE Owner
STATE
b ALTER TABLE Owner
MODIFY OWNERSTATE CHAR DEFAULT NV;
c ALTER TABLE Owner
OWNERSTATE NV;
Icon Key
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started