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

SQL Error: ambiguous column name: title

multiple conditions challenge 2

Gyรถrgy Varga
Gyรถrgy Varga
19,198 Points

Hi! Can you please post your code and the link to the challange?

1 Answer

Steven Parker
Steven Parker
229,732 Points

Since you didn't show your code or reference the challenge I'm taking a guess here. But I think it's likely that you might see that error when you JOIN two tables that both have a column named title. So if you want to show that column, or use it in a filter clause, you need to fully specify it by putting the name of the table it comes from before the column name, and separate them with a period. For example, if it came from a table named "books" then instead of just "title" you would write "books.title".

Let me know if I guessed the issue, and if not, please show the actual code and provide a link to the course.