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 Joining Table Data with SQL JOIN Queries

I keep getting question 5 wrong so I can't move to the next step.

I keep getting question 5 wrong so I can't move on.

SELECT firstname, lastname, saleamount FROM sale sa INNER JOIN salesRep AS sr ON sa.SalesRepID = sr.SalesRepID;

SELECT s.SaleDate, s.SaleAmount, sr.FirstName, sr.LastName FROM Sale AS s LEFT OUTER JOIN SalesRep AS sr ON s.SalesRepID = sr.SalesRepID;

1 Answer

Steven Parker
Steven Parker
229,708 Points

The code shown here is correct for challenge task 3 (not task 5), and will pass task 3 as-is. But if you're actually working on task 5 the objective is quite different.

Also, you can always skip a challenge (or any course step) by clicking on the next circle on the progress bar that goes across the top of the page. The current page is represented by the circle with the ring around it. If you're on the very last circle, you can skip to the next stage by going back to the course index using the link at the top left (above the bar with the circles). From there, you can go directly to any page in the course.