Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 . 2 1 LAB - Create LessonSchedule table with FK constraints The database contains a Horse table, with columns: ID - integer, primary key
LAB Create LessonSchedule table with FK constraints
The database contains a Horse table, with columns:
ID integer, primary key
RegisteredName variablelength string
The database contains a Student table, with columns:
ID integer, primary key
FirstName variablelength string
LastName variablelength string
Create a third table, named Lessonschedule, with columns:
HorselD integer with range to thousand, not NULL, foreign key references HorseID
StudentID integer with range to thousand, foreign key references StudentID
LessonDateTime datetime not NULL
Primary key is HorselD LessonDateTime
If 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.
Notes: Table and column names are case sensitive in the autograder. Your SOL code does not display any results in Develop mode. Use
Submit mode to test your code
LAB
: LAB Create LessonSchedule table with FK constraints
Search
aphas
is
c
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