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 trialdfeem
4,660 PointsLooking for help on this challenge?
This is the code I used, but didn't get correct answer. I also tried other variations.
SELECT mk.MakeName, md.ModelName, cr.VIN, cr.StickerPrice AS mk FROM Make INNER JOIN Model AS md ON mk.MakeID = md.MakeID INNER JOIN AS cr ON md.ModelID = cr.MakeID;
1 Answer
Steven Parker
231,271 PointsYou're close, but I see a few issues:
- the table alias "AS mk" must come after the table name
- the last join is missing the table name (I'd guess you meant it to be "Car")
- the Car table does not have a "MakeID" column
- the join criteria should compare columns of the same kind
dfeem
4,660 Pointsdfeem
4,660 PointsThanks a bunch!