Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Databases SQL Reporting by Example Day 3: Getting Good at Grouping Finding the Troublemaker

Stamos Bolovinos
Stamos Bolovinos
4,320 Points

What's wrong with having 5th period science and 7th period art?

Why is this student a troublemaker? I don't get it. I mean I could build the query to get the result, but don't understand the context.

2 Answers

Steven Parker
Steven Parker
215,959 Points

I don't think the class schedule has anything to do with being a "troublemaker". I think the idea is just that these two class times are both clues to identifying a particular student.

As to exactly who is a "troublemaker" or why is not explained. I suspect this is a reference to this particular episode of the "XKCD" comic strip in which a student's middle name is actually an SQL injection security attack. In that case, the "troublemaker" would actually be the student's mom.

Stamos Bolovinos
Stamos Bolovinos
4,320 Points

Got it! Because he's last name is 'Tables'... great comic strip site, thanks for that :-)

i'd say your suspicion is correct

Little Bobby Tables! That's brilliant!

Aside: it's fun to not only get the joke, but now understand some of the actual coding behind it!