I need help.
I have to do a very specific SQL Statement and I just can’t figure out, how it should work.
What I got is two tables:
TABLE1: shop_articles CONTAINS pos (int), manufacturer (varchar)
TABLE2: shop_texts CONTAINS pos (int), text (text)
So I got two Variables $keyManufacturer and $keyText
What I want is a intersection where $keyManufacturer matches ‘manufacturer’ and check, if on the same ‘pos’ ‘text’ matches $keyText
I’m pretty sure, that’s not too hard, but I can’t figure out the solution.
Any help?
Here there are 3 conditions in the
WHEREclause and the result is the rows that match all three conditions. Think this is what you want. You can tryjoinsin you are interested.