Diferencia entre "y" y "dónde" en uniones
Cuál es la diferencia entre
SELECT DISTINCT field1
FROM table1 cd
JOIN table2
ON cd.Company = table2.Name
and table2.Id IN (2728)
y
SELECT DISTINCT field1
FROM table1 cd
JOIN table2
ON cd.Company = table2.Name
where table2.Id IN (2728)
ambos devuelven el mismo resultado y ambos tienen el mismo resultado de explicación