For example if I were to have a table "Person" with a column "id" that references a column "id" in table "Worker"
What would the difference between these two queries be? They yield the same results.
SELECT *
FROM Person
JOIN Worker
ON Person.id = Worker.id;
and
SELECT *
FROM Person,
Worker
WHERE Person.id = Worker.id;
Thanks
Answer
There is no difference at all.
Second representation makes query more readable and makes it look very clear as to which join corresponds to which condition.
No comments:
Post a Comment