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

György Varga
György Varga
19,198 Points

Code Challange don't accept right solution

Code Challange don't accept right solution

Here is the challange (2. task): https://teamtreehouse.com/library/querying-relational-databases/set-operations/set-operations

What is wrong with my code? It shows the right results!!

SELECT DISTINCT NAME FROM Fruit WHERE NAME BETWEEN 'A' AND 'K' UNION SELECT DISTINCT NAME FROM Vegetable WHERE NAME BETWEEN 'A' AND 'K';

1 Answer

Steven Parker
Steven Parker
231,128 Points

Those results might not be as "right" as you think!

Do you see any items that begin with "K" in your results? Kale? Kiwifruit? Kumquat?

You're close, but you need a slightly different range specification.