Some devs use JOIN
and AND
in this sql
SELECT * FROM A LEFT JOIN B
ON A.id = B.id AND B.date_begin < '2019' AND B.date_end > '2018'
WHERE B.group IN (..)
Which yield a different result if moving the condition in where part
SELECT * FROM A LEFT JOIN B
ON A.id = B.id
WHERE B.group IN (..)
AND B.date_begin < '2019' AND B.date_end > '2018'
Why and how does the SQL is interpreted?