I wonder if it is possible to use AND
within a INNER JOIN
, eg:
SELECT *
FROM tab1
INNER JOIN tab2
ON tab2.id2 = tab1.id1
AND tab2.camp1 = 'valor'
INNER JOIN tab3
ON tab3.id3 = tab2.id2;
I gave a rather silly example, but the question is if you have some way to use AND
after ON
and before another INNER JOIN
?