What is the difference bettween
SELECT a.AccountId FROM Accounts AS a JOIN domain as d;
and
SELECT a.AccountId
FROM Accounts AS a JOIN domain as d WHERE a.AccountId=d.AccountId;
I thought JOIN is an inner join which only matches when the left AccountId is == to the right AccountId. Wouldn’t the above be exactly the same? I got different results when typing it into MySQL (command line).
Your first statement doesn’t specify any join criteria at all, to make it equivalent you would need to change it to:
I think what your asking, but not sure, is whats the difference between old style joins
And ANSI joins which is
And those are equivalent