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

Dan Barrett
Dan Barrett
10,450 Points

Querying Relational Databases - Challenge Task 1 of 5

I am really struggling to select the required data the task is asking for. I keep getting as far as selecting the Car and Model tables and not being able to return the rest.

1 Answer

Jarosław Jarząbek
Jarosław Jarząbek
10,970 Points

Try this:

SELECT m.ModelName, c.VIN, c.StickerPrice
FROM Car AS c
INNER JOIN Model AS m ON m.ModelId = c.ModelID;