Hi!
I have 2 tables (See attached image).
I want to select all(') from the table variables, but I only want to get data where variables.ID doesn't exist in table translations.ID.
okey! So if the variables-ID does not exist in the table-translation:Variable, den I want to get it.
Also, there must have to be a where statement so I can choose too fetch variables with language (id) 3, or another integer.
I want this because I want to select all variables which hasn't been used in the translation table.
I have tried with innerjoin... and actually I have never used joins before, never had too. But now I think I have to, but my innerjoin didn't worked.
And because of my understanding in joins is small, I also tried left and right join but I din't get it too work.
It would by my knowledge be something like this.
SELECT variables.* FROM variables INNER JOIN translations ON variables.id != translations.id WHERE language = 3
But no.. I only get all variables even if the variable ID is in the translation.variable table.
Thanks in advance! I guess this is simple for you guys.