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

Union projection where names start with letters A-K.

I am trying to solve this with the below query, but the output table isn't filtering out the names that don't start with A-K letters. Is there something I'm missing in my query? Am I doing the wrong LIKE condition?

SELECT Name FROM Fruit Union SELECT Name FROM Vegetable WHERE Name LIKE '[a-k]%';

1 Answer

Andreas Frost Nordstrøm-Hansen
Andreas Frost Nordstrøm-Hansen
2,443 Points

Hi Samuel.

You need to use the BETWEEN condition.

Try with that, come back if you still cant solve it. But try for yourself first :)