I have two MySQL tables, j and t, with a third normalising table, jt.
t.tID
j.jID
jt.status
jt.tID
jt.jID
How can I select all j where all jt.status=”x”? That is, I want to select when all jt of a j are x, not just when one or more jt of a j are x.
I think table t may be irrelevant in this.
(I hope I make myself understood, I’m finding it rather hard to explain. Comment questions if you want.)
It appears as though you want the
not existsclause.This selects everything from
jtwhere not a single value that isn’txexists in that table.