Question: The database has three tables for tracking horse - riding lessons: The Horse table has columns: ID - primary key RegisteredName Breed Height BirthDate The
The database has three tables for tracking horseriding lessons:
The Horse table has columns:
ID primary key
RegisteredName
Breed
Height
BirthDate
The Student table has columns:
ID primary key
FirstName
LastName
Street
City
State
Zip
Phone
EmailAddress
The LessonSchedule table has columns:
HorseID foreign key references Horse
StudentID foreign key references Student
LessonDateTime datetime
Primary key is HorseID LessonDateTime
To produce a list of available lesson times, write a statement that selects lesson datetime, horse ID and the student's first and last name. Order the results in ascending order by lesson datetime, then by horse ID Display unassigned lesson times student ID is NULL in the results.
Hint: Perform a join on Student and LessonSchedule, matching the student IDs.
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
