Skip to content
Advertisement

issue with INNER JOIN in MYSQL 6.3

im trying to join data from two tables like this:

but there is a 1064 error:

I dont get it why.

this code without the inner join works fine:

Advertisement

Answer

First, this query:

You have a scalar subquery. However, if could return more than one row, which would be an error. I am guessing you want a correlated subquery here:

Then, JOIN is an operator in the FROM clause. The entire FROM clause needs to come before the where. So I suspect you are trying to write:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement