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 trialCalvin . T Rupango
6,083 PointsDatabases and querying challange task 5 of 6
my qn is like this
There are two tables Fruit and Vegetable table. The Fruit table has a FruitID and a Name column and the Vegetable table has a VegetableID and Name column. Create an alphabetical list of fruits that are NOT considered a vegetable.
and This is my solution which is not running..
SELECT Name FROM Fruit EXCEPT SELECT Name FROM Vegetable WHERE Name ="Vegetable" ORDER BY Name; So i dont know where am getting it all wrong please help.
4 Answers
almah furayi
11,813 PointsThis is the correct answer
SELECT Name FROM Fruit EXCEPT SELECT Name FROM Vegetable Name ORDER BY Name;
Ari Misha
19,323 PointsHiya Calvin! Can ya link us to the challenge? And remove the "Where" clause from your query and run the query. I hope it helped. If it didnt , link us to the challenge and post back. (:
Calvin . T Rupango
6,083 PointsThank you much. It worked (:
Jim Jobe
10,367 PointsThis is the correct answer. SELECT Name FROM Vegetable INTERSECT SELECT Name FROM Fruit ORDER BY Name