Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

My solution for the Rex Rios schedule

SELECT cla.period_id AS "Period",
       sub.name AS "Subject",
       tea.first_name || " " || tea.last_name AS "Teacher",
       cla.room_id AS "Room",
       per.start_time AS "Time"
FROM schedule as sch
JOIN students AS stu ON stu.id = sch.student_id,
     classes as cla ON cla.id = sch.class_id,
     subjects AS sub ON sub.id = cla.subject_id,
     teachers AS tea ON tea.id = cla.teacher_id,
     periods AS per ON per.id = cla.period_id
WHERE stu.first_name = "Rex"
AND stu.last_name = "Rios"
ORDER BY period_id ASC;