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

saying im missing the left key, Please someone help me?

SELECT m.ModelName, c.StickerPrice FROM Model m OUTER JOIN Car c ON m.ModelID = c.ModelID WHERE c.ModelId IN ( SELECT ModelId FROM Car WHERE StickerPrice > 30000 );

Im not sure why its saying that im missing the left key.

1 Answer

Steven Parker
Steven Parker
231,172 Points

when you "OUTER JOIN" you need to specify either LEFT or RIGHT, I assume the challenge you are working is expecting a LEFT.

But this query doesn't seem related to the challenge linked by the button, none of the tasks in that challenge have anything to do with filtering on sticker price!   :see_no_evil: