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 SQL Reporting by Example Day 2: Advanced Selecting Predicting the Future

Mathias Schulenburg
Mathias Schulenburg
2,679 Points

Determining Capacity

In determining that max amount of sixth graders, is the teacher assuming that all sixth graders have the same schedule?

1 Answer

Steven Parker
Steven Parker
231,184 Points

This query is not determining a maximum number of students, but rather a maximum capacity of the rooms that are used for 6th grade classes.

So the final value is based on room capacities and the Students table is not part of the query at all.

We know the students do not have the same schedule, but it would be a different query to determine if the schedules might exceed any of the room capacities. Perhaps you might construct one like that for extra practice!