Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed SQL Reporting by Example!
You have completed SQL Reporting by Example!
Preview
What class does Janis Ambrose teach during each period? Be sure to include all 7 periods in your report!
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Also, make sure that your report
includes all seven periods, so
0:00
we can easily compare
schedules between teachers.
0:01
For this query,
0:05
let's start by just getting a list
of which classes Janice teaches.
0:05
And to do that, we're going to need
to join from the TEACHERS table
0:10
to the CLASSES table.
0:13
So let's select everything
from the TEACHERS table, and
0:15
join that to the CLASSES table,
ON TEACHERS.ID = CLASSES.TEACHER_ID.
0:19
Perfect.
0:26
Then let's add a WHERE and,
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up