RienSQL
TASK #42 · Medium

Time at school from 2nd to 4th subject

Your brief
How long will the student be in school, studying from the 2nd to the 4th academic subject?
Expected columnstimeSchedule
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
classid, name
scheduleid, date, class, number_pair, teacher, subject, classroom
studentid, first_name, middle_name, last_name, birthday, address
student_in_classid, class, student
subjectid, name
teacherid, first_name, middle_name, last_name
timepairid, start_pair, end_pair