Final answer:
The SQL query provided retrieves the lesson schedule for Feb 1, 2020, including date/time, student names, and horse names, with unassigned times shown and ordered by lesson date/time and horse name.
Step-by-step explanation:
To create a lesson schedule for Feb 1, 2020, with the lesson date/time, student's first and last names, and the horse's registered name while ensuring that unassigned lesson times are included, you should use a SELECT statement. The statement should also order the results in ascending order by the lesson date/time, followed by the horse's registered name. The SQL query might look something like this:
SELECT lesson.date_time, student.first_name, student.last_name, horse.registered_name
FROM lesson
LEFT JOIN student ON lesson.student_id = student.id
LEFT JOIN horse ON lesson.horse_id = horse.id
WHERE lesson.date_time BETWEEN '2020-02-01 00:00:00' AND '2020-02-01 23:59:59'
ORDER BY lesson.date_time ASC, horse.registered_name ASC;
This query selects the required fields, joins the student and horse tables to the lesson table, filters for lessons on the specified date, and orders the results as requested. It also includes lessons that have not been assigned to a student by using a LEFT JOIN and displaying results even if the student ID is NULL.