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 Querying Relational Databases Subqueries Using a Subquery to Create a Temporary Table (Part 2)

Is There a Sales Table?

I'm curious why Andrew's code is working? He's pulling information from a Sales table, but there is not such table. There is only a Sale table, without the 's' at the end.

For this lesson I'm using the 'Sale' table.

Is there something I am missing?

1 Answer

Steven Parker
Steven Parker
231,248 Points

No, you're correct, but did you watch the whole video?

At about 5 minutes into the video the query made with "Sales" is run and produces an error. Then the instructor points out that the table names are not correct, fixes them, and then runs the query successfully.