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 trialBenoit Tordeurs
Full Stack JavaScript Techdegree Student 9,400 PointsSELECT * FROM Model WHERE ModelID IN (SELECT ModelID FROM Car WHERE StickerPrice > 30000)
all that I would try" bummer: your query did not show Model Id, how could I do to make it appear with 'IN'? I had all car above 30k underneath, impossible to get with Join model ID, in both database. I am puzzle
1 Answer
Steven Parker
231,198 PointsAssuming you are working on task 1, the instructions say: *"Use a subquery along with IN to list all the Model Names with a Sticker Price greater than $30000".
So you were very close, all you need to change is which column you select (instead of all of them):
SELECT ModelName FROM Model WHERE ModelID IN (SELECT ModelID FROM Car WHERE StickerPrice > 30000);
Benoit Tordeurs
Full Stack JavaScript Techdegree Student 9,400 PointsBenoit Tordeurs
Full Stack JavaScript Techdegree Student 9,400 PointsThank you very much indeed and for the explanation, as somebody told me that it would better to erase all column!