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 don't understand

I have tried many ways, I am so confused SELECT SalesRep.FirstName, SalesRep.LastName,Sale.SaleAmount, Sale.SaleDate FROM Sale LEFT OUTER JOIN SalesRep ON Sale.SaleId = SalesRep.SalesRepID;

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Data Analysis Techdegree Graduate 45,998 Points

Hey there Alyssa Daniel !

I think this is probably something very small, I'm not 100% if the lack of a space between SalesRep.LastName,Sale.SaleAmount, would cause an issue, but I believe the main issue is the non-capitalized d in your ON Sale.SaleId. Where is should be SaleID.

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