Question: The database contains a Horse table, with columns:ID - integer, primary keyRegisteredName - variable - length stringThe database contains a Student table, with columns:ID -
The database contains a Horse table, with columns:ID integer, primary keyRegisteredName variablelength stringThe database contains a Student table, with columns:ID integer, primary keyFirstName variablelength stringLastName variablelength stringCreate a third table, named LessonSchedule, with columns:HorseID integer with range to thousand, not NULL, foreign key references HorseIDStudentID integer with range to thousand, foreign key references StudentIDLessonDateTime datetime not NULLPrimary key is HorseID LessonDateTimeIf a row is deleted from Horse, the rows with the same horse ID should be deleted from LessonSchedule automatically.If a row is deleted from Student, the same student IDs should be set to NULL in LessonSchedule automatically.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
